diff options
author | Eric Wong <e@80x24.org> | 2021-05-06 01:53:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-05-06 02:28:39 +0000 |
commit | aa6ad348fea8a7affb1ecf025c297983d0e061cd (patch) | |
tree | 1c5372fcb5439187ce70c3cca508787a6b49bb7d /lib | |
parent | 8e29aa50db0147f63ba4a164dce53d2d735d0a9f (diff) | |
download | public-inbox-aa6ad348fea8a7affb1ecf025c297983d0e061cd.tar.gz |
We don't need Xapian positional info when searching for blob pre/post-images. Furthermore, rediff will usually be used for a single email or at most, one patchset. So there's little point in parallelizing or having multiple shards.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/LeiRediff.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiRediff.pm b/lib/PublicInbox/LeiRediff.pm index deb6c3ae..3c8ebe41 100644 --- a/lib/PublicInbox/LeiRediff.pm +++ b/lib/PublicInbox/LeiRediff.pm @@ -239,7 +239,9 @@ sub ipc_atfork_child { $self->{blobs} = {}; # oidhex => filename $self->{rdtmp} = File::Temp->newdir('lei-rediff-XXXX', TMPDIR => 1); $self->{tmp_sto} = PublicInbox::LeiStore->new( - "$self->{rdtmp}/tmp.store", { creat => 1 }); + "$self->{rdtmp}/tmp.store", + { creat => { nproc => 1 }, indexlevel => 'medium' }); + $self->{tmp_sto}->{priv_eidx}->{parallel} = 0; $self->{rmt} = [ $self->{tmp_sto}->search, map { PublicInbox::LeiRemote->new($lei, $_) } $self->{lxs}->remotes ]; |