We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The second challenge here is cleaning up all of those junk rows in existing *_fts_docsize tables. Doing that just to the demo database from https://github-to-sqlite.dogsheep.net/github.db dropped its size from 22MB to 16MB! Here's the SQL: DELETE FROM [licenses_fts_docsize] WHERE id NOT IN ( SELECT rowid FROM [licenses_fts]); I can do that as part of the existing table.optimize() method, which optimizes FTS tables. Originally posted by @simonw in #149 (comment)
The second challenge here is cleaning up all of those junk rows in existing *_fts_docsize tables. Doing that just to the demo database from https://github-to-sqlite.dogsheep.net/github.db dropped its size from 22MB to 16MB! Here's the SQL:
*_fts_docsize
DELETE FROM [licenses_fts_docsize] WHERE id NOT IN ( SELECT rowid FROM [licenses_fts]);
I can do that as part of the existing table.optimize() method, which optimizes FTS tables. Originally posted by @simonw in #149 (comment)
table.optimize()
The text was updated successfully, but these errors were encountered:
Writing a test for this will be a tiny bit tricky. I think I'll use a test that replicates the bug in #149.
Sorry, something went wrong.
FTS4 uses a different column name here: https://datasette-sqlite-fts4.datasette.io/24ways-fts4/articles_fts_docsize
CREATE TABLE 'articles_fts_docsize'(docid INTEGER PRIMARY KEY, size BLOB);
3e87500
Release 2.17
f28cd4d
Refs #144, #148, #149, #150, #151, #152, #153
.optimize() no longer cleans up _docsize
64799df
This isn't necessary any more since the new .rebuild_fts() method can achieve the same thing. Refs #155, #153
I've reverted this change again, because it turns out using the rebuild FTS mechanism is a better way of repairing this issue - see #155.
rebuild
No branches or pull requests
The text was updated successfully, but these errors were encountered: