Article View: news.software.nntp
Article #34749Re: NNTP revision - it's about time?
From: Russ Allbery
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
50 lines
3380 bytes
3380 bytes
Curt Welch <curt@kcwc.com> writes: > Russ Allbery <rra@stanford.edu> wrote: >> It's worth noting that it's not so much *abuse* of NEWNEWS that's >> caused a lot of sites to disable it, but the fact that pretty much >> everyone stores overview information keyed by either message ID or by >> group and article number within a group, not keyed by time of arrival. >> If you had an overview database keyed by time of arrival, NEWNEWS would >> be pretty fast. > Ok, I should check before I write, but... Doesn't newnews take a group > pattern as well, so the additional problem is that even with a date > keyed message-id/group list you end up scanning hundreds of thousands of > records just to return a small handful of records. It's not quite *that* bad if you assume a per-group overview file just like the current ones, but keyed by arrival date rather than article number. In fact, since the article number generally increases linearly with arrival time, all you may really need is a fast searching algorithm on a traditional INN overview file to find the first article arriving after a given time. (This would be helped considerably by storing dates in the overview file as seconds since epoch, but it's probably too late for that in the current format....) If clients really *use* the full power of the group pattern, which unfortunately can be almost a full-blown wildmat(3) pattern (it doesn't allow character classes, but it does allow inverted matches and * wildcards), then yeah, your life as the server pretty much sucks, since you have to scan the whole active file, find all matching groups, and then scan their individual overview files, or you have to scan one global overview file and throw away a lot of stuff. It gets even worse if they use the "feature" to limit the search to certain distributions. > And, clients (not knowning the problems they are causing) tend to issue > multiple newnews commands for each group so the server can end up > re-scanning that huge list for each group the client wants to check? This is actually the ideal case for the most obvious implementation. Like most programming problems, I contend that it's possible to solve the NEWNEWS implementation problem by strategic application of appropriate data structures; the problem is that the data structures best suited to implementing it aren't the best ones for either fast storage of articles or for processing XOVER requests, which are rather more important these days. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylhftq1jt0.fsf@windlord.stanford.edu>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-mailReferences:
<77nr30$15t$1@taliesin.netcom.net.uk> <77qcib$9vi$2@remarQ.com> <77qfel$kb@meow.invalid> <77rg37$t8g$1@remarQ.com> <77rtd2$e6l$1@shell1.ncal.verio.com> <ylk8ym1m0p.fsf@windlord.stanford.edu> <19990117011843.034$w1@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <ylhftq1jt0.fsf@windlord.stanford.edu> Subject: Re: NNTP revision - it's about time? Date: Sat, 16 Jan 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <77nr30$15t$1@taliesin.netcom.net.uk> <77qcib$9vi$2@remarQ.com> <77qfel$kb@meow.invalid> <77rg37$t8g$1@remarQ.com> <77rtd2$e6l$1@shell1.ncal.verio.com> <ylk8ym1m0p.fsf@windlord.stanford.edu> <19990117011843.034$w1@newsreader.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: 433564156 Sender: eagle@windlord.stanford.edu Organization: The Eyrie Newsgroups: news.software.nntp