]> Sergey Matveev's repositories - public-inbox.git/commit
lei_mail_sync: do not use transactions
authorEric Wong <e@80x24.org>
Thu, 2 Sep 2021 10:17:56 +0000 (10:17 +0000)
committerEric Wong <e@80x24.org>
Thu, 2 Sep 2021 10:18:36 +0000 (10:18 +0000)
commit44917fdd24a8bec1125caa21949476f97d8658d4
tree7bec8992780e589bca44b111d06452f1a7c7ae4c
parent3f27381a79782be136ae8d27c8f585edbbc6f6bf
lei_mail_sync: do not use transactions

For lei-index to work in parallel with MUA access and upcoming
inotify-based updates, mail_sync.sqlite3 needs to always be
up-to-date to read-only worker processes (ahead of everything
else).  So rely on the default auto-commit behavior and hope
SQLite WAL can reduce some of the overheads involved with
writes.
lib/PublicInbox/LeiMailSync.pm
lib/PublicInbox/LeiStore.pm
t/lei_mail_sync.t