From 9825426219e7772f1e44840dd2cdf548bf73ad63 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Sun, 4 Mar 2018 20:04:29 +0000 Subject: [PATCH] search: favor skeleton DB for lookup_mail 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 4dc27472..dc46ead0 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; }); } -- 2.44.0