From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: 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.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id AC4FA1F4B4 for ; Thu, 10 Dec 2020 08:35:47 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] manifest: account for future cache in MiscIdx docdata Date: Thu, 10 Dec 2020 08:35:47 +0000 Message-Id: <20201210083547.23643-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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); }