Mailspring/internal_packages
Mark Hahnenberg 5730d23da8 [search-index] Limit search index size
Summary:
This diff modifies the SearchIndexer class to handle limiting the search
index size. It does this by periodically re-evaluating the window of
the n most recent items in a particular index where n is the max size of
the index. It then unindexes the items which are marked as indexed but
are no longer in the window and indexes the things that are in the window
but aren't marked as indexed.

Test Plan:
Run locally with a reduced thread index size, verify that the index
includes the most recent items and that it is the correct size. Also verify that
the queries used properly use fast sqlite indices.

Reviewers: evan, juan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3741
2017-01-23 12:19:34 -08:00
..
account-sidebar perf(scroll): improve thread list scroll perf 2017-01-15 15:12:54 -08:00
attachments deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
category-picker fix(category-picker): Handle the case where new category creation fails 2017-01-10 16:23:53 -08:00
composer fix(Linting errors) 2017-01-05 14:39:25 -08:00
composer-emoji fix(import): require 'rx' from 'nylas-exports' 2016-12-15 15:32:47 -05:00
composer-markdown Fix references for ~/.nylas to ~/.nylas-mail 2017-01-13 18:54:37 -08:00
composer-signature fix(lint): update files to for new linter version 2016-11-15 10:20:39 -08:00
composer-spellcheck fix(spellcheck): fix right click menu on spellcheck 2017-01-14 16:18:23 -08:00
composer-templates Fix references for ~/.nylas to ~/.nylas-mail 2017-01-13 18:54:37 -08:00
composer-translate rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
draft-list fix(import): require 'rx' from 'nylas-exports' 2016-12-15 15:32:47 -05:00
events deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
github-contact-card Fix references for ~/.nylas to ~/.nylas-mail 2017-01-13 18:54:37 -08:00
keybase Create a wrapper around legacy N1 APIs. 2017-01-09 15:18:43 -08:00
main-calendar rm(calendar): Comment out more calendar things 2017-01-16 19:32:18 -08:00
message-autoload-images 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
message-list fix(spinner): Use a constant spinner when loading inline images 2017-01-09 10:46:09 -08:00
message-view-on-github Fix references for ~/.nylas to ~/.nylas-mail 2017-01-13 18:54:37 -08:00
mode-switch 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
notifications fix(changelog): link to correct changelog 2017-01-19 11:28:50 -08:00
onboarding fix(auth) Increment timeout for requests that initiate imap connections 2017-01-19 16:06:37 -08:00
participant-profile fix(clearbit): catch API errors 2017-01-17 12:42:40 -08:00
personal-level-indicators feat(off): disable/hide snooze, mail rules, misc minor plugins 2017-01-06 15:39:09 -08:00
phishing-detection Fix references for ~/.nylas to ~/.nylas-mail 2017-01-13 18:54:37 -08:00
plugins Fix references for ~/.nylas to ~/.nylas-mail 2017-01-13 18:54:37 -08:00
preferences add comment 2017-01-17 16:31:07 -08:00
print fix(thread-popout) Add missing packages to the 'thread-popout' window 2016-10-18 11:02:30 -07:00
remove-tracking-pixels 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
screenshot-mode feat(package): require 'engines': {'nylas': '*'} in package.json 2016-04-25 15:06:37 -07:00
search-index [search-index] Limit search index size 2017-01-23 12:19:34 -08:00
send-and-archive deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
system-tray deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
theme-picker deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
thread-list fix(sync-messaging): Have "Looking for messages..." update properly 2017-01-16 17:49:55 -08:00
thread-search [thread-search] Background on-keypress search queries 2017-01-23 11:50:27 -08:00
thread-snooze fix(sync-status): Change old per model status, in favor of per folder 2016-12-15 11:17:20 -08:00
ui-dark build(*): electron-compile, electron-packager instead of custom tooling 2016-11-09 13:52:10 -08:00
ui-darkside Fix references for ~/.nylas to ~/.nylas-mail 2017-01-13 18:54:37 -08:00
ui-less-is-more 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
ui-light build(*): electron-compile, electron-packager instead of custom tooling 2016-11-09 13:52:10 -08:00
ui-taiga 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
ui-ubuntu 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
undo-redo deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
unread-notifications perf(sync): don't send message bodies across IPC & limit global IPC 2017-01-16 10:28:49 -08:00
verify-install-location Don't try to move the app file to the Application folder ourselves 2017-01-16 12:31:15 -08:00
worker-sync fix(deltas) Prevent app from crashing when processing deltas 2017-01-16 19:37:37 -08:00
worker-ui fix(sync-status):Use weighted percentage avg for sync status progress bar 2016-12-21 18:30:54 -05:00