Article View: news.software.readers
Article #266159Re: betterbird: reading crossposts once?
From: Russ Allbery
Date: Wed, 18 Oct 2023 19:14
Date: Wed, 18 Oct 2023 19:14
34 lines
2447 bytes
2447 bytes
Frank Slootweg <this@ddress.is.invalid> writes:
> Neither do I, but it's just SMOP (Small Matter Of Programming). All you
> have to do is to remember all the hundred of thousands / millions of
> message-ids of the postings you've ever 'read'. How hard can *that* be!?
> :-)
Well, we know exactly how hard this is, because you're describing a news
server's history database. News servers also have to remember every
message they've seen, and they have to do that by message ID. News
servers limit this to articles within a certain date range and reject all
articles older than that date range, but servers that never expire
essentially keep that data forever.
There are a bunch of techniques for maintaining that database. It mostly
uses dedicated data structures optimized for this specific problem, not a
SQLite database, although I'd be interested to see someone try with modern
SQLite or another SQL database and see if it can be optimized enough,
since those tools have a lot more general optimizations and way more
active developers.
This is certainly *doable*, since it's done all the time, and a modern
server is often smaller (in disk, memory, and CPU) than a typical laptop,
let alone desktop. On my news server, it currently takes up about 660MiB
of disk space, which is smaller than a lot of video games. :) But that's
literally every message the server has on disk, and I can assure you that
I have not read the VAST majority of them, so most history databases for a
personal newsreader would be substantially smaller.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<877cnjyc89.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<uftnus$2voq4$1@dont-email.me> <1qnm7s6fh6uot$.dlg@v.nguard.lh>Show Full Headers
Complete Article Headers
Message-ID: <877cnjyc89.fsf@hope.eyrie.org> Subject: Re: betterbird: reading crossposts once? Date: Wed, 18 Oct 2023 12:14:30 -0700 From: Russ Allbery <eagle@eyrie.org> References: <uftnus$2voq4$1@dont-email.me> <1qnm7s6fh6uot$.dlg@v.nguard.lh> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers,news.software.nntp Organization: The Eyrie Mime-Version: 1.0 Content-Type: text/plain Injection-Info: hope.eyrie.org; User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:UnjIiotRbwF9lJbZe2A360o7NHg=