🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266148

Re: betterbird: reading crossposts once?

#266148
From: Frank Slootweg
Date: Tue, 17 Oct 2023 12:26
77 lines
5518 bytes
Jakob Bohm <jb-usenet@wisemo.com.invalid> wrote:
> On 2023-10-16 19:27, Frank Slootweg wrote:
> > 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.
> > 
> 
> You don't understand what I wrote.  Idea would be to use some kind of 
> available (search optimized) database engine to store the values, 
> updated incrementally as messages enter and leave the storage or are 
> marked read.  Scanning all messages would be a "once in a while" 
> database repair in case the database gets out of sync with the message 
> storage and be done using O(n*log(n)) code.
> 
> Database lookups would happen during the initial import of messages (to 
> see if a newly arrived message was marked read by an earlier user access 
> to a duplicate) and when displaying a message or its header on screen 
> (to see if it a duplicate was marked read since its arrival).
> 
> Thus common operations change from complexity O(n*n) to O(delta*log(n))
> given typically assumed lookup costs in indexed databases.

  I understood perfectly what you wrote, but you proposed solution does
not cover the scenarios I described, especially - but not only - the
scenario of adding a new newsserver which has a long retention time.

  So I'm afraid "You don't understand what I wrote."

  Yes, you can work around that with hacks like not loading old
articles, but that will require use of article numbers instead of
message-ids, so you might as well use article numbers from the start.

  Anyway, *if* this issue is a real problem - i.e. not just a minor
inconvience in some corner cases - for some people, they can try to
switch to a newsreader which does aggregrate articles from several
servers (i.e. something which Thunderbird (and Betterbird?) does not do)
or add a 'proxy' which does the aggregration (like Hamster, which I
use).
Technical Details
Message-ID: <ugm5ik.dug.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> <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> <ugk2rn.pb0.1@ID-201911.user.individual.net> <DR2cna8-c45fBbD4nZ2dnZeNn_Vi4p2d@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <ugm5ik.dug.1@ID-201911.user.individual.net>
Subject: Re: betterbird: reading crossposts once?
Date: Tue, 17 Oct 2023 12:26:36 +0000
From: Frank Slootweg <this@ddress.is.invalid>
References: <uftnus$2voq4$1@dont-email.me>  <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> <ugk2rn.pb0.1@ID-201911.user.individual.net> <DR2cna8-c45fBbD4nZ2dnZeNn_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
Newsgroups: news.software.readers,news.software.nntp
Content-Type: text/plain; charset=ISO-8859-1
Mime-Version: 1.0
Organization: NOYB
Content-Transfer-Encoding: 8bit
X-Received-Bytes: 5512
Lines: 77
X-Trace: individual.net SF7IEBslaMxbczRaGwUUCAs99ULvi1QOLjiY05rjzbvO7rflfK
Cancel-Lock: sha1:NaeQHRfEJOhd9CQ76Lo1+2izx+Q= sha256:oePzSURs3GZ4fEKsLUL9c/GNLI/mBq2rbmvLfGlwOLA=
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
X-Orig-Path: not-for-mail