🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37223

Re: Abandoning uniover - but how?

#37223
From: Arthur Hagen
Date: Tue, 04 May 1999 00:00
49 lines
3034 bytes
In article <7glbhu$pdg$1@twwells.com>, bill@twwells.com writes:

> The obvious way is, of course, to do just that -- write overview
> records that are sortable to a single file and periodically sort
> and distribute those records. But that imposes a significant delay
> on the availability of overview data. So, my thought went, suppose
> you didn't process everything at once, but instead, "magically"
> knew which groups were going to get read and which not. Then, you
> could just write that tiny fraction of overview records that
> actually get used, without the delay.
> 
> Of course, there is no magic. However, if one changes the point at
> which overview records are collected from innd to nnrpd one *does*
> know which overview records are needed. The cost of this is, of
> course, that you end up with those long delays. Thus the
> compromise in my post -- nnrpd does the overview but something
> periodically ensures that not too many articles are ever out of
> the overview, thus putting an upper bound on the time of the
> delay.

As far as I know, most sorting algorithms will work much faster on
a partially sorted list than a totally unsorted one.
Wouldn't it be possible whenever a sorted overview is needed to lock
the read area of the overview file while it is being sorted, then
write it back?  Since the lock would not be on the whole file, it
would not prohibit appending (i.e. incoming news), and at worst
would block an expiry process and other reader processes until the
lock was released.

However, what I really think would help the most, was to ditch the
overview index files completely, and replace them with a .*db.* style
hash of hashes.  This may, of course, cause problems on systems with a
file size limit of 2G, but then you would have problems with the
history file size anyhow, before the overview index grew to that size,
I would think...?  Or?

> : The 2.x overview is
> : the worst compromise, we prebuild overview entries for every group, we
> : have the overhead of formatting the data somewhat for the reader on
> : demand, and the performance still rots.
> 
> Yeah.

Regards,
-- 
*Art

Technical Details
Message-ID: <cc5mg7.045.ln@flying.broomstick.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <7ga14u$h7f$1@news.netmar.com> <7ga998$61p$1@twwells.com> <7gl3va$ofa$1@newssvr03-int.news.prodigy.com> <7glbhu$pdg$1@twwells.com>

Show Full Headers
Complete Article Headers
Message-ID: <cc5mg7.045.ln@flying.broomstick.com>
Subject: Re: Abandoning uniover - but how?
Date: Tue, 04 May 1999 00:00:00 +0000
From: art@flying.broomstick.com (Arthur Hagen)
References: <7ga14u$h7f$1@news.netmar.com> <7ga998$61p$1@twwells.com> <7gl3va$ofa$1@newssvr03-int.news.prodigy.com> <7glbhu$pdg$1@twwells.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 473864928
X-Complaints-To: abuse@broomstick.com
X-Trace: kether.broomstick.com 925815293 43905 194.52.172.70 (4 May 1999 10:54:53 GMT)
Organization: Broomstick Net Services
Reply-To: art@broomstick.com
NNTP-Posting-Date: 4 May 1999 10:54:53 GMT
Newsgroups: news.software.nntp