From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2523D1FAFF for ; Tue, 6 Mar 2018 08:42:44 +0000 (UTC) From: "Eric Wong (Contractor, The Linux Foundation)" To: meta@public-inbox.org Subject: [PATCH 28/34] search: favor skeleton DB for lookup_mail Date: Tue, 6 Mar 2018 08:42:36 +0000 Message-Id: <20180306084242.19988-29-e@80x24.org> In-Reply-To: <20180306084242.19988-1-e@80x24.org> References: <20180306084242.19988-1-e@80x24.org> List-Id: The skeleton DB is smaller and hit more frequently given the homepage and per-message/thread views; so it will be hotter in the page cache. --- lib/PublicInbox/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 4dc2747..dc46ead 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -381,7 +381,7 @@ sub lookup_message { sub lookup_mail { # no ghosts! my ($self, $mid) = @_; retry_reopen($self, sub { - my $smsg = lookup_message($self, $mid) or return; + my $smsg = lookup_skeleton($self, $mid) or return; $smsg->load_expand; }); } -- EW