diff options
author | Eric Wong <e@80x24.org> | 2020-12-27 11:01:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-28 23:18:48 +0000 |
commit | d209c2064ebc8ccddc7f0da068c663fc08077334 (patch) | |
tree | 22f61072fa9b1e5ae01fb3bfb42a4ffbfadc8868 /lib/PublicInbox/WwwListing.pm | |
parent | e411f4465dd26d8b09d005224a8ead7056e6e532 (diff) | |
download | public-inbox-d209c2064ebc8ccddc7f0da068c663fc08077334.tar.gz |
Since ExtSearch lacks the janky cleanup timer of PublicInbox::Inbox objects, its search results get stale. Reopen the Xapian DB on every ->search call for now, as reducing reopen calls doesn't seem worth the complexity. The Xapian::Database::reopen operation itself takes only ~50us on my old workstation with 3 shards totaling <200GB. Other parts of Xapian dominates the search time, so the reopen seems inconsequential with single-digit shard counts.
Diffstat (limited to 'lib/PublicInbox/WwwListing.pm')
0 files changed, 0 insertions, 0 deletions