]> Sergey Matveev's repositories - public-inbox.git/commit
extindex: --watch for inotify-based updates
authorEric Wong <e@80x24.org>
Sat, 26 Dec 2020 01:44:37 +0000 (01:44 +0000)
committerEric Wong <e@80x24.org>
Sun, 27 Dec 2020 09:30:33 +0000 (09:30 +0000)
commit1d96509a3f59c38394d2f3ac4323dc54c74dc202
treeca024650d5f29d9a13e95d93d5bebae4166da18b
parent46bd595f57cc3d425754b0d0770c125616e74448
extindex: --watch for inotify-based updates

This reuses existing InboxIdle infrastructure to update external
indices based on per-inbox updates.  This is an alternative to
auto-updating external indices via the -index command and also
works with existing uses of -mda and public-inbox-watch.

Using inotify (or EVFILT_VNODE) allows watching thousands of
inboxes without having to scan every single one at every
invocation.

This is especially beneficial in cases where an external index
is not writable to the users writing to per-inbox indices.
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/InboxIdle.pm
lib/PublicInbox/OverIdx.pm
lib/PublicInbox/V2Writable.pm
script/public-inbox-extindex