You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/27 02:55:18 UTC
[jira] [Commented] (COUCHDB-2955) Reopen DBs in couch_index_updater
[ https://issues.apache.org/jira/browse/COUCHDB-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15170273#comment-15170273 ]
ASF GitHub Bot commented on COUCHDB-2955:
-----------------------------------------
GitHub user tsutsu opened a pull request:
https://github.com/apache/couchdb-couch/pull/147
Add counters for lifetime total queued and dequeued items
This PR enables a work queue to keep a running total of all the work that's ever been added to it, queryable through the functions `total_in/1`, `total_out/1`, and `total_held/1`. Additionally, a `queue(Wq, Item, CountsAs)` function-clause has been added and exported, which enables a single queue-item to be counted as an arbitrary number of work-items from the perspective of the running total counters. This allows for the ability to track the total number of individual work-items processed, even when queuing and dequeuing are done in "chunks" of items, as is done in `couch_index_updater`.
COUCHDB-2955
BugzID: 14036
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-couch 14036-loop-updater-until-caught-up
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-couch/pull/147.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #147
----
commit f4a3c74c523cb699067b9540fee895dbd3cd6ba8
Author: Levi McAuley <le...@leviaul.com>
Date: 2016-02-27T01:30:00Z
Add counters for lifetime total queued and dequeued items
----
> Reopen DBs in couch_index_updater
> ---------------------------------
>
> Key: COUCHDB-2955
> URL: https://issues.apache.org/jira/browse/COUCHDB-2955
> Project: CouchDB
> Issue Type: Improvement
> Components: Database Core
> Reporter: Levi McAuley
>
> When couch_index_updater finishes streaming couch_db:enum_docs_since we should reopen the db and stream again until we reopen with zero updates. This should theoretically improve latency for things waiting for view updates.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)