🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266142

Re: betterbird: reading crossposts once?

#266142
From: Frank Slootweg
Date: Mon, 16 Oct 2023 17:27
42 lines
3602 bytes
Jakob Bohm <jb-usenet@wisemo.com.invalid> wrote:
> On 2023-10-16 18:03, candycanearter07 wrote:
> > On 10/16/23 10:49, Frank Slootweg wrote:
> >>    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!?
> >> :-)
> > 
> > You could just scan for matching ids when you read an article. Or, maybe 
> > you could limit it to the messages read in the last x days, to cut down 
> > on processing time.
> 
> A more practical optimization is to only retain a database of MIDs of
> messages that are marked "read" in actively kept message storage.  Thus
> when a read message is "aged out" of storage, its "read" status is aged
> out too.  To avoid old messages transiting in and out of view, keep a
> count of how many copies are marked read for each MID and count that
> down as messages age out.  Once in a while, rebuild database from the
> stored messages and their "read" status, then do a second pass to mark
> duplicates of read messages as read.  Bonus: Also index the body
> contents hash to catch identical multi-posting.

  I said "hundred of thousands / millions of message-ids" for a reason.

  I have well over a million articles in my "message storage". Keeping
that a amount of messages-ids is already not practical, but *scanning*
(for read/not_read status) them for each an every new (and old) article
is impossible.

  But even if you don't keep (that) many articles in your message store,
when you add a new newsserver which has a long retention time, you *do*
have to scan all those articles, just in case there's one which you have
already marked as read.

  That's why newsservers and newsreaders use article numbers instead of
message-ids. It makes things much more simple (actually possible instead
of impossible). But yes, it works only for a specific server, not
accross servers and when adding a new group or/and new server you should
only fetch the latest N articles (which is very simple using article
numbers).

  Bottom line: Using article numbers is done for a very good reason.
Technical Details
Message-ID: <ugk2rn.pb0.1@ID-201911.user.individual.net>
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
References: <uftnus$2voq4$1@dont-email.me> <w29h803rmpn4.dlg@v.nguard.lh> <slrnuilnm3.3uvei.rayban@raybanana.net> <ofkn3js6yvvh$.dlg@v.nguard.lh> <uggt8q.rdg.1@ID-201911.user.individual.net> <ugh6ae$cvr5$3@dont-email.me> <ughha2.nhc.1@ID-201911.user.individual.net> <ughfd8$aigv$1@news.trigofacile.com> <ugjdnb.ido.1@ID-201911.user.individual.net> <8mpm1esqft.fsf@raybanana.net> <ugjt35.nqo.1@ID-201911.user.individual.net> <ugjmsc$1fjvk$2@dont-email.me> <PYicnd_php9R_7D4nZ2dnZeNn_Vi4p2d@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <ugk2rn.pb0.1@ID-201911.user.individual.net>
Subject: Re: betterbird: reading crossposts once?
Date: Mon, 16 Oct 2023 17:27:56 +0000
From: Frank Slootweg <this@ddress.is.invalid>
References: <uftnus$2voq4$1@dont-email.me>  <w29h803rmpn4.dlg@v.nguard.lh> <slrnuilnm3.3uvei.rayban@raybanana.net> <ofkn3js6yvvh$.dlg@v.nguard.lh> <uggt8q.rdg.1@ID-201911.user.individual.net> <ugh6ae$cvr5$3@dont-email.me> <ughha2.nhc.1@ID-201911.user.individual.net> <ughfd8$aigv$1@news.trigofacile.com> <ugjdnb.ido.1@ID-201911.user.individual.net> <8mpm1esqft.fsf@raybanana.net> <ugjt35.nqo.1@ID-201911.user.individual.net> <ugjmsc$1fjvk$2@dont-email.me> <PYicnd_php9R_7D4nZ2dnZeNn_Vi4p2d@giganews.com>
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
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (CYGWIN_NT-10.0-WOW/2.8.0(0.309/5/3) (i686)) Hamster/2.0.2.2
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=ISO-8859-1
Lines: 42
X-Orig-Path: not-for-mail
X-Trace: individual.net U96u907VUHrdH3pnxSYIkw5cj5CM2CT66k7Zb9G0USsSAfIMHf
Cancel-Lock: sha1:Iurn/N2Hp4Tt/s6TVhAfPiuvOAY= sha256:BVwqrQ+ZNEF9Nxnwn3bRczuwd3uEKQ0b9SGiLQCj0rA=
Mime-Version: 1.0
Newsgroups: news.software.readers,news.software.nntp
Organization: NOYB
X-Received-Bytes: 3596