From: Eric Wong (Contractor, The Linux Foundation) Date: Sun, 4 Mar 2018 20:04:29 +0000 (+0000) Subject: search: favor skeleton DB for lookup_mail X-Git-Tag: v1.1.0-pre1~177 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=9825426219e7772f1e44840dd2cdf548bf73ad63;p=public-inbox.git 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. --- 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; }); }