diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2010-12-08 16:11:25 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2010-12-08 16:11:25 +0000 |
commit | 3191597a70d955369d5cb3df9f602dd0e2b61bc0 (patch) | |
tree | 069c5cfc295fdfa8d41021f379536716b1a1292c /src/couchdb/couch_view_updater.erl | |
parent | 2b6049692b0b76fa60c1d0e1adc99fe7b0888054 (diff) |
Usort the infos during compaction to remove dupes, COUCHDB-968
This is not a bulletproof solution; it only removes dupes when the
they appear in the same batch of 1000 updates. However, for dupes
that show up in _all_docs the probability of that happening is quite
high. If the dupes are only in _changes a user may need to compact
twice, once to get the dupes ordered together and a second time to
remove them.
A more complete solution would be to trigger the compaction in "retry"
mode, but this is siginificantly slower.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1043479 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_view_updater.erl')
0 files changed, 0 insertions, 0 deletions