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

View indexing is very slow, due to mis-optimized SQLite query #856

Closed
djpongh opened this issue May 10, 2017 · 0 comments
Closed

View indexing is very slow, due to mis-optimized SQLite query #856

djpongh opened this issue May 10, 2017 · 0 comments
Milestone

Comments

@djpongh
Copy link
Contributor

djpongh commented May 10, 2017

From: couchbase/couchbase-lite-ios#1737

Using EXPLAIN QUERY PLAN I found that the optimizer has generated a horrifically bad plan, essentially an inside-out join, that results in linear scans of two large tables. (Presumably this is due to some change in the optimizer between the older and newer versions of SQLite in iOS.)

@djpongh djpongh added this to the 1.4.1 milestone May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant