]> Sergey Matveev's repositories - public-inbox.git/commit
lei_xsearch: use per-external queries when not sorting
authorEric Wong <e@80x24.org>
Tue, 13 Apr 2021 10:54:42 +0000 (10:54 +0000)
committerEric Wong <e@80x24.org>
Tue, 13 Apr 2021 19:04:41 +0000 (15:04 -0400)
commita1a309418475aaa99d63cda8191ef3ce534343cd
treec46c9a5a3f53a882fa1dd2964d99d71d18b750e6
parent775e160375fb5c15f3b5ade3a1165f7ce5df9eb4
lei_xsearch: use per-external queries when not sorting

We only need the combined mset query when we care about sort
order.  When writing to --output destinations intended for MUA
consumption, sort order is irrelevant as MUAs are expected to
offer their own sorting, so run queries to each external in
parallel.

This prepares us for docid-sort-based saved search support.

It will also become faster than the combined mset query for
users with many externals due to current Xapian exhibiting poor
performance with many shards (the same reason -extindex exists)
lib/PublicInbox/LeiXSearch.pm