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

Don't create SQLite FTS or RTree tables until needed #604

Merged
merged 1 commit into from
Feb 18, 2015
Merged

Conversation

snej
Copy link
Contributor

@snej snej commented Feb 18, 2015

This allows CBL to work with a SQLite build that doesn't include the fts3 or rtree modules
(for example, a stock build of SQLCipher.)
It probably also speeds up database creation somewhat.
Also, I noticed we didn't have any unit tests for geo anymore, so I went back in time and
restored the old one.

This allows CBL to work with a SQLite build that doesn't include the fts3 or rtree modules
(for example, a stock build of SQLCipher.)
It probably also speeds up database creation somewhat.
Also, I noticed we didn't have any unit tests for geo anymore, so I went back in time and
restored the old one.
@snej
Copy link
Contributor Author

snej commented Feb 18, 2015

Updated the patch to handle the case where a geo/fts query is made before any geo/fts rows have been added to this index. (Initially this would fail because the tables didn't exist yet.)

pasin added a commit that referenced this pull request Feb 18, 2015
Don't create SQLite FTS or RTree tables until needed
@pasin pasin merged commit f9c373d into master Feb 18, 2015
@pasin pasin deleted the fix/lazy_fts branch February 18, 2015 22:24
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.

2 participants