Mailspring/packages
Evan Morikawa e197de86e0 [local-sync] fix attribute scanning in sync worker
Summary:
Fixes https://phab.nylas.com/T7435

The old deepScan (now `scanForAttributeChanges`) and shallowScan (now
`fetchLatestAttributeChanges`) had some fatal flaws.

If you deep scanned it would attempt to load the message attributes of all
messages ever and cause very bad memory leaks.

Also, if you left a mailbox running for a long time, there was a query
that would eventually run `Message.findAll` and, even though it was just
returning the headers, would still run insanely expensive operations

This fixes (and renames) these issues.

Test Plan: manual

Reviewers: spang, halla, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3657
2017-01-13 12:00:45 -08:00
..
isomorphic-core [local-sync] For generic IMAP, Thread based on Message-Id, In-Reply-To & References 2017-01-13 10:39:54 -08:00
local-private Update Nylas N1 to Nylas Mail 2017-01-12 11:25:39 -08:00
local-sync [local-sync] fix attribute scanning in sync worker 2017-01-13 12:00:45 -08:00