mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
parent
c449064297
commit
3e87500e15
4 changed files with 34 additions and 0 deletions
|
|
@ -1178,6 +1178,10 @@ Once you have populated a FTS table you can optimize it to dramatically reduce i
|
|||
This runs the following SQL::
|
||||
|
||||
INSERT INTO dogs_fts (dogs_fts) VALUES ("optimize");
|
||||
DELETE FROM [dogs_fts_docsize] WHERE id NOT IN (
|
||||
SELECT rowid FROM [dogs_fts]);
|
||||
|
||||
That ``DELETE`` statement cleans up rows that may have been created by `an obscure bug <https://github.com/simonw/sqlite-utils/issues/153>`__ in previous versions of ``sqlite-utils``.
|
||||
|
||||
Creating indexes
|
||||
================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue