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

Limit calls to maybe_add_sys_db_callbacks to once per db open

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Database Core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: