diff options
| author | Austin Clements <amdragon@mit.edu> | 2015-06-05 19:28:33 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-08-04 08:54:46 +0200 |
| commit | e6ad3a5dd4ca7a09a4760c4eb6721217cc906aaa (patch) | |
| tree | 9114e6747dc7d8012e0586e5751ac0442e44df64 /doc | |
| parent | 2eb558fd9b369458c23b57b44281758bd17a5580 (diff) | |
lib: Only sync modified message documents
Previously, we updated the database copy of a message on every call to
_notmuch_message_sync, even if nothing had changed. In particular,
this always happens on a thaw, so a freeze/thaw pair with no
modifications between still caused a database update.
We only modify message documents in a handful of places, so keep track
of whether the document has been modified and only sync it when
necessary. This will be particularly important when we add message
revision tracking.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
