From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 902A71F8C7 for ; Wed, 4 Aug 2021 10:02:48 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] extindex: do not over-account for cross-posted messages Date: Wed, 4 Aug 2021 10:02:47 +0000 Message-Id: <20210804100248.30008-2-e@80x24.org> In-Reply-To: <20210804100248.30008-1-e@80x24.org> References: <20210804100248.30008-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Cross-posted messages don't result in massive writes to the Xapian DBs like a completely unseen message would, so stop accounting for their size. This ought to improve performance for heavily cross-posted setups, but --commit-interval still has effect. --- lib/PublicInbox/ExtSearchIdx.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 22edbb4b..7b7dfb53 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -103,7 +103,6 @@ sub do_xpost ($$) { my $xnum = $req->{xnum}; $self->{oidx}->add_xref3($docid, $xnum, $oid, $eidx_key); $idx->ipc_do('add_eidx_info', $docid, $eidx_key, $eml); - check_batch_limit($req); } else { # 'd' my $rm_eidx_info; my $nr = $self->{oidx}->remove_xref3($docid, $oid, $eidx_key,