Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1084

Remove unnecessary btree lookup inside couch_db_updater

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      None
    • Skill Level:
      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.

        Attachments

        1. remove_btree_lookup.patch
          22 kB
          Damien Katz
        2. davisp-1084.patch
          16 kB
          Paul Joseph Davis

          Activity

            People

            • Assignee:
              damienkatz Damien Katz
              Reporter:
              damienkatz Damien Katz
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: