]> Sergey Matveev's repositories - public-inbox.git/commit
mbox: disable "&t" on existing Xapian until full reindex
authorEric Wong <e@yhbt.net>
Sat, 22 Aug 2020 06:06:27 +0000 (06:06 +0000)
committerEric Wong <e@yhbt.net>
Sun, 23 Aug 2020 00:19:53 +0000 (00:19 +0000)
commita367ec1b15a2458e532245f5308565dd84f8ca63
tree97f5c7fc52301282ff9a5f1c9913f3827edd3b49
parentaad1b9e70529b78d3d7d62b0920ad82ca40f9592
mbox: disable "&t" on existing Xapian until full reindex

Expanding threads via over.sqlite3 for mbox.gz downloads without
Xapian effectively collapsing on the THREADID column leads to
repeated messages getting downloaded.

To avoid that situation, use a "has_threadid" Xapian metadata
flag that's only set on --reindex (and brand new Xapian DBs).

This allows admins to upgrade WWW or do --reindex in any order;
without worrying about users eating up bandwidth and CPU cycles.
lib/PublicInbox/Mbox.pm
lib/PublicInbox/Search.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/SearchView.pm
lib/PublicInbox/V2Writable.pm
t/init.t
t/psgi_search.t