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

Limit calls to maybe_add_sys_db_callbacks to once per db open

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      None

      Description

      As part of performance regression testing we found out that there was a code change in
      couch_server:open/2,
      Options = maybe_add_sys_db_callbacks(DbName, Options0)
      and as a result of that change, we are basically calling maybe_add_sys_db_callbacks for each request instead of once per db open.

      We have tested a fix to ensure that we call maybe_add_sys_db_callbacks only once per db open. And executed a GET performance benchmark and found the following improvements.

      • Throughput: Up to ~5% improvement.
      • Up to ~22% improvement in p90 and p99 latencies

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kbkreddy Bala Kolla
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: