You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/06/02 21:36:27 UTC
[GitHub] [couchdb] nickva opened a new pull request #2922: Improve efficiency of couch_jobs:accept/2 for views
nickva opened a new pull request #2922:
URL: https://github.com/apache/couchdb/pull/2922
Use couch_jobs's `no_schedule` accept option to speed up job dequeuing.
This optimization allows dequeung jobs more efficiently if these conditions are
met:
1) Job IDs start with a random prefix
2) No time-based scheduling is used
Both of those can be true for views job ids can be generated such that
signature comes before the db name part, which is what this commit does.
The way the optimisation works, is random IDs are generating in pending jobs
range, then, a key selection is used to pick either a job before or after
it. That reduces each dequeue attempt to just 1 read instead of reading up to
1000 jobs.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva merged pull request #2922: Improve efficiency of couch_jobs:accept/2 for views
Posted by GitBox <gi...@apache.org>.
nickva merged pull request #2922:
URL: https://github.com/apache/couchdb/pull/2922
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org