You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Bala Kolla (JIRA)" <ji...@apache.org> on 2017/03/06 16:38:32 UTC

[jira] [Resolved] (COUCHDB-3307) Limit calls to maybe_add_sys_db_callbacks to once per db open

     [ https://issues.apache.org/jira/browse/COUCHDB-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bala Kolla resolved COUCHDB-3307.
---------------------------------
    Resolution: Fixed

> Limit calls to maybe_add_sys_db_callbacks to once per db open
> -------------------------------------------------------------
>
>                 Key: COUCHDB-3307
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3307
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>            Reporter: Bala Kolla
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)