🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18826

Re: ANNOUNCE: The Great Cancel Problem

#18826
From: Joe Greco
Date: Sat, 28 Jun 1997 00:00
55 lines
2971 bytes
In news.software.nntp article <5p17ds$7li@sh1.ro.com>, cadams@sh1.ro.com (Chris Adams) wrote:
:Joe Greco <jgreco@ns.sol.net> wrote:
:>Cancel volume has become a problem for many.  A great deal of the problem
:>is that the time required to scan a multi-hundred-kilobyte control/cancel
:>directory is quite significant.
:
:I have been thinking about this in the more general case.  On machines
:accessed only through NNRP, you could change the layout any way you
:want.  Some have talked about using some type of database, but that is a
:pretty radical change.  How about something like what you describe for
:the whole spool, except instead of /1234567890 -> /56/78/1234567890 have
:something like /1234567890 -> /5.6/7.8/1234567890 (just to make sure you
:don't conflict with valid article numbers).  Then you could even have
:the old and new co-exist for a few weeks while you transition to the new
:format.
:
:Eventually, as news volume grows, other groups will have the same
:problem as the control/cancel group does now.  Why not try to fix the
:problem before we get there?

Because I'm inherently lazy, and some of us have moved beyond the realm
of directory-per-group restrictions.

However, I will note the following thing(s).

It would not be impossible to extend this mechanism.

Since we have not totally diverged from the traditional method, nnrpd
will still scan all the entries in (f.e.) /news/control/cancel.

If one were to change the format used to create the filenames to
something like

"control/cancel/1234567890"->"control/cancel/sub.56/sub.78/1234567890"

you can then do something clever in nnrpd:  in GRPscandir, you modify it
to recurse into any directory beginning with "sub.*", and read all the
articles in such a directory too.  This would automatically pick up all
files in "sub.56" (no files but more subdirectories) and "sub.78" (where
all the files would be).  That's the main problem, and it is solvable.

Because you generate the subdirectory names in a deterministic manner,
based on the message number, you won't have unsolvable problems 
elsewhere.

This is horribly inefficient, but then again, so's doing a directory scan
of a 1MB directory.

That might be a good thing for all the *.jobs.offered groups.  Then again,
a good rmgroup would fix it too.

... JG

Technical Details
Message-ID: <5p3d0p$769$1@earth.execpc.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: <5p0mk0$m6g$1@earth.execpc.com> <5p17ds$7li@sh1.ro.com>

Show Full Headers
Complete Article Headers
Message-ID: <5p3d0p$769$1@earth.execpc.com>
Subject: Re: ANNOUNCE: The Great Cancel Problem
Date: Sat, 28 Jun 1997 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <5p0mk0$m6g$1@earth.execpc.com> <5p17ds$7li@sh1.ro.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: 253233569
Sender: jgreco@earth.execpc.com
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp