This repository has been archived by the owner. It is now read-only.
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Use ets:select/2 to retrieve shards by name
The result of mem3_shards:for_db/1 on databases with high q values can be very large, resulting in suboptimal performance for high-volume callers. mem3_sync_event_listener is only interested in a small subset of the result of mem3_shards:for_db/1; moving this filter in to an ets:select/2 call improves performance significantly. COUCHDB-2984
- Loading branch information
Showing
2 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters