]> Sergey Matveev's repositories - public-inbox.git/commit
extsearchidx: simplify reindex code paths
authorEric Wong <e@80x24.org>
Tue, 15 Dec 2020 02:02:22 +0000 (02:02 +0000)
committerEric Wong <e@80x24.org>
Thu, 17 Dec 2020 19:13:14 +0000 (19:13 +0000)
commit75ffc6a266699e465471adf5992d36a1db8dc1ae
tree874275015e175ebf12c9fad5858228021bba4ce5
parentc014cd93de1f2c73348db0e6531f93cf0f1be60f
extsearchidx: simplify reindex code paths

Since we're inside a Xapian transaction, calling ->index_raw
followed by ->shard_add_eidx_info calls on the same docid
doesn't seem to hurt indexing performance.  It definitely
reduces FS read traffic and IPC from git at the cost of some
more IPC between the parent and workers.  Nevertheless, the code
and FD reductions seem worth it.
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/SearchIdxShard.pm