nickva opened a new pull request, #5172:
URL: https://github.com/apache/couchdb/pull/5172

   Previously, couch_lru used `unique_integer([monotonic,positive])` to 
generate incrementing integer keys. That call take a global VM lock [1]:
   
   > Strictly monotonically increasing values are inherently quite expensive to
   generate and scales poorly.
   
   This is especially bad now that we have sharded couch_server instances, each 
with it's own LRU. We don't want them all to bottleneck waiting on each other 
to generate their integers.
   
   [1] https://www.erlang.org/doc/apps/erts/erlang.html#unique_integer/1
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to