diff options
author | Eric Wong <e@80x24.org> | 2021-02-25 05:37:18 +0600 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-25 09:47:35 +0000 |
commit | f0731b9b653640afd8078aed994814b3049f230a (patch) | |
tree | c0f2435145204845e55ef5d7fcd0f62b0d85884b /lib/PublicInbox/LeiQuery.pm | |
parent | 335eff473d58fa2d9431cd119b8cc8ce855e7c72 (diff) | |
download | public-inbox-f0731b9b653640afd8078aed994814b3049f230a.tar.gz |
This lets users avoid network traffic on subsequent searches at the expense of local disk space. --no-import-remote may be specified to reverse this trade-off for users with little storage.
Diffstat (limited to 'lib/PublicInbox/LeiQuery.pm')
-rw-r--r-- | lib/PublicInbox/LeiQuery.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 743fa3f7..b57d1cc5 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -51,6 +51,7 @@ sub lei_q { # we'll allow "--only $LOCATION --local" my $sto = $self->_lei_store(1); my $lse = $sto->search; + $sto->write_prepare($self) if $opt->{'import-remote'} //= 1; if ($opt->{'local'} //= scalar(@only) ? 0 : 1) { $lxs->prepare_external($lse); } |