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-ASN: 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 1EB801FA12 for ; Sat, 24 Apr 2021 09:28:47 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 5/7] doc: lei_design_notes: add a bit on WAL usage Date: Sat, 24 Apr 2021 09:28:44 +0000 Message-Id: <20210424092846.726-6-e@80x24.org> In-Reply-To: <20210424092846.726-1-e@80x24.org> References: <20210424092846.726-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: --- Documentation/lei_design_notes.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/lei_design_notes.txt b/Documentation/lei_design_notes.txt index a5606c05..f1d2ab6f 100644 --- a/Documentation/lei_design_notes.txt +++ b/Documentation/lei_design_notes.txt @@ -18,3 +18,15 @@ SQLite, and Xapian across multiple processes. The coupling of IMAP and NNTP network latency to local storage is a current weakness of public-inbox-watch. Therefore, -watch will likely adopt the daemon architecture of lei in the future. + +Read/write vs read-only storage +------------------------------- + +public-inboxes are intended to be written and read by different +Unix users. Commonly, a single Unix user or group will write to +a public-inbox, but the inbox will be served by a user with +read-only permissions (e.g. "www-data" or "nobody"). + +lei/store is intended to be read and written by a single user, +thus we can rely on the Write-Ahead-Log journal of SQLite to +improve performance: