Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.2
-
None
-
None
-
Committers Level (Medium to Hard)
Description
The CouchDB update process has an unnecessary btree lookup, where it reads the values in bulks, checks for conflicts, writes the docs to disk, updates the values appropriately and writes them to the btree out in a second step. It's possible to avoid this second step, and instead do all the checking, doc writing and value transformation in a single btree lookup, thereby reducing the number of btree traversals and disk IO.