Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBL-6282: Replicator starts up slow for big database #2148

Draft
wants to merge 2 commits into
base: release/3.1
Choose a base branch
from

Conversation

callumbirks
Copy link
Contributor

Cherry-pick 711f886:

Optimize unsorted enumeration of BothKeyStore (#1858)

Use a different algorithm to enumerate a BothKeyStore when the sortOption is kUnsorted: just enumerate the live docs first, then the deleted ones. This removes the need to order the underlying enumerations, which in turn allows SQLite to use indexes when onlyConflicts is set.
This should fix CBL-4506

Cherry-pick 711f886:

Optimize unsorted enumeration of BothKeyStore (#1858)

Use a different algorithm to enumerate a BothKeyStore when the
sortOption is kUnsorted: just enumerate the live docs first, then
the deleted ones. This removes the need to order the underlying
enumerations, which in turn allows SQLite to use indexes when
`onlyConflicts` is set.
This should fix CBL-4506
@cbl-bot
Copy link

cbl-bot commented Sep 28, 2024

Code Coverage Results:

Type Percentage
branches 68.45
functions 80.11
instantiations 33.97
lines 79.02
regions 76.23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants