]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: lei_design_notes: add a bit on WAL usage
authorEric Wong <e@80x24.org>
Sat, 24 Apr 2021 09:28:44 +0000 (09:28 +0000)
committerEric Wong <e@80x24.org>
Sat, 24 Apr 2021 20:10:02 +0000 (16:10 -0400)
Documentation/lei_design_notes.txt

index a5606c05f1dc7cac76695f57d9adce591ee166c3..f1d2ab6f216926aa7030a1103ea59ae75d2484d9 100644 (file)
@@ -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: <https://sqlite.org/wal.html>