From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH] manifest: account for future cache in MiscIdx docdata
Date: Thu, 10 Dec 2020 08:35:47 +0000 [thread overview]
Message-ID: <20201210083547.23643-1-e@80x24.org> (raw)
We'll be storing private data inside the "" (empty string) key
of the JSON doc we use for store for manifest.js.gz generation.
This private data will allow us to reduce FS activity at and
speed up startup times, but some will also be in Xapian boolean
terms and values for searching and filtering.
---
lib/PublicInbox/ManifestJsGz.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/PublicInbox/ManifestJsGz.pm b/lib/PublicInbox/ManifestJsGz.pm
index fb7a45e7..6d5b57ee 100644
--- a/lib/PublicInbox/ManifestJsGz.pm
+++ b/lib/PublicInbox/ManifestJsGz.pm
@@ -61,6 +61,7 @@ sub eidx_manifest_add ($$$) {
my ($ctx, $ALL, $ibx) = @_;
if (my $data = $ALL->misc->inbox_data($ibx)) {
$data = $json->decode($data);
+ delete $data->{''}; # private
while (my ($url_path, $ent) = each %$data) {
inject_entry($ctx, $url_path, $ent);
}
reply other threads:[~2020-12-10 8:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201210083547.23643-1-e@80x24.org \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).