couchbase-lite-core
couchbase-lite-core copied to clipboard
faster start of replicator
When starting a replicator there are 3 queries done on the local database which are not using the correct index. This leads to a very long time until the first reaction from the replicator occurs. I had a 3GB sqlite database file on an IPad which took several minutes(!) to complete these queries. This PR ensures the appropriate indexes are used and the queries are completed almost instantly.
What is the plan for this? Should we accept just the undisputed half?
@KraemerDEM , as Jens pointed it out, it should not need to use "ORDER BY key." How did you get it to use ORDER BY?
@KraemerDEM, as @jens pointed out, the query should not use "ORDER BY key". How did you get it to use "ORDER BY" ?
Well, as @snej also pointed out, it's because in BothKeyStore::newEnumeratorImpl the sort order is changed as options.includeDeleted is set?
. @KraemerDEM BothKeyStore starts in release/3.1 branch. I assume you were using release/lithium. Which version of CBL are you using?
@jianminzhao I was using the git master branch at that time.
The underlying cause of this issue is resolved in commit #711f886899b23b