BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Stalwart email & DB vs file system for message storage
- Subject: [Discuss] Stalwart email & DB vs file system for message storage
- From: ron at bclug.ca (Ron)
- Date: Thu, 22 Jan 2026 01:24:15 -0800
- In-reply-to: <d1c07f4f4fdf21defe76ff98d430f52e.squirrel@mail.mohawksoft.com>
- References: <61c91e0a-f658-415c-a91d-bc8cb008bf0b@borg.org> <26989.37879.578151.953291@gargle.gargle.HOWL> <26989.37936.100241.254462@gargle.gargle.HOWL> <c40fd68e-e540-471c-a253-7ae04dedaa65@borg.org> <20260119080150.7891b97d.Richard.Pieri@gmail.com> <56dcf563-62a6-4c16-aa84-ed825818def7@borg.org> <987cd7dc-096a-4a4c-be90-20e4847cdb17@bclug.ca> <20260120162647.1d90d2d7@mydesk.domain.cxm> <32eaffac-42e5-4af7-9fae-8a0514d9b97d@bclug.ca> <20260120215709.4cd9c226.Richard.Pieri@gmail.com> <d1c07f4f4fdf21defe76ff98d430f52e.squirrel@mail.mohawksoft.com>
markw at mohawksoft.com wrote on 2026-01-21 05:52: > A database makes sense for the indexing and organization of email, > but storage for the files itself makes no sense. For what it's worth, with Stalwart there are several different stores: Internal Data (metadata, folders, various settings - essentially all except blobs) Blobs (emails, sieve scripts, other files) Search (full-text search) In-Memory (key-value storage for SMTP server, anti-spam, etc.) The default storage for everything is RocksDB, a file-based system that's not one single file like SQLite but a few files like so: -rw-r--r-- 1 root root 179768 2026-01-22 01:03 000004.log -rw-r--r-- 1 root root 16 2026-01-22 00:27 CURRENT -rw-r--r-- 1 root root 36 2026-01-22 00:27 IDENTITY -rw-r--r-- 1 root root 0 2026-01-22 00:27 LOCK -rw-r--r-- 1 root root 333787 2026-01-22 01:07 LOG -rw-r--r-- 1 root root 1468 2026-01-22 00:27 MANIFEST-000005 -rw-r--r-- 1 root root 132563 2026-01-22 00:27 OPTIONS-000007 I suspect its performance is better than SQLite, else Google (LevelDB) then Facebook (RocksDB) would've just used SQLite. Sometimes it's easier to fork something than to try to convince someone else to merge your changes if they don't value the features. Cheers And I remain unconvinced that a DB isn't well suited to email messages since it works for Google's Gmail. I'd need to see some *evidence* that it isn't a good idea. Stalwart won the Github funding prize so they'll be presenting at FOSSDEM this year, hopefully with results from their attempts to scale up to "Gmail scale" with prize money spent on cloud infrastructure to test with millions(?) of users connecting up. > Stalwart: Can Open Source do Gmail-scale Email? > > Ever wondered how Gmail, Yahoo, and Apple iCloud manage to host > hundreds of millions of email accounts reliably? How do they store > petabytes of messages, survive hardware failures without losing > data, and keep spam at bay across billions of daily deliveries? https://fosdem.org/2026/schedule/event/FP8EFX-scaling-email/ Could be interesting.
- Follow-Ups:
- [Discuss] Stalwart email & DB vs file system for message storage
- From: markw at mohawksoft.com (markw at mohawksoft.com)
- [Discuss] Stalwart email & DB vs file system for message storage
- References:
- [Discuss] Future of X11 (was Trying to connect to internet in Debian)
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: dbarrett at blazemonger.com (Daniel Barrett)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: ron at bclug.ca (Ron)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: slitt at troubleshooters.com (Steve Litt)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: ron at bclug.ca (Ron)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: markw at mohawksoft.com (markw at mohawksoft.com)
- [Discuss] Future of X11 (was Trying to connect to internet in Debian)
- Prev by Date: [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- Next by Date: [Discuss] Stalwart E-mail; Was: Re: SSH options
- Previous by thread: [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- Next by thread: [Discuss] Stalwart email & DB vs file system for message storage
- Index(es):
