* [PATCH] manifest: account for future cache in MiscIdx docdata
@ 2020-12-10 8:35 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2020-12-10 8:35 UTC (permalink / raw)
To: meta
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);
}
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-12-10 8:35 7% [PATCH] manifest: account for future cache in MiscIdx docdata Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).