Mailspring/internal_packages/search-index/lib
Mark Hahnenberg fbce62d97b [search-index] Fix slow UPDATE and DELETE FTS queries
Summary:
FTS tables don't support indices, so doing UPDATEs and DELETEs based on
the `content_id` was very slow on large FTS tables. Fortunately, it seems
that `UPDATE`s and `DELETE`s based on the `rowid` are much faster, so now we
store that info hanging off the searchable models. Also fixes a random bug
where after reaching the `MAX_INDEX_SIZE` we would clear the Thread search
index on startup.

Test Plan: Run locally, time how long it takes to delete when receiving new mail

Reviewers: spang, evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D3847
2017-02-07 12:19:44 -08:00
..
contact-search-indexer.es6 [search-index] Embiggen Thread and Contact indexes 2017-01-27 10:30:45 -08:00
event-search-indexer.es6 [search-index] Limit search index size 2017-01-23 12:19:34 -08:00
main.es6 [search-index] Throttle search indexing 2017-01-16 10:32:45 -08:00
search-indexer.es6 Add option to silence query plan debug output for individual queries 2017-01-25 09:56:46 -08:00
thread-search-index-store.es6 [search-index] Fix slow UPDATE and DELETE FTS queries 2017-02-07 12:19:44 -08:00