Article View: news.software.nntp
Article #44673Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
From: Terrance Richard Boyes
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
83 lines
5326 bytes
5326 bytes
Curt Welch <curt@kcwc.com> wrote: > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: >> >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: >> >> >> A server would actually be better off indexing *all* the headers >> >> in an article, >> >> Curt> I think this HEADERS command will encourage future designs to >> Curt> do just that. >> >> How do you suggest multiple instances of a header be handled? >From which POV ? As far as database storage goes it's a standard piece of relational design (with all the associated resource issues). Of course whether or not storage of such muliple headers /should/ be done is an entirely different matter. If they are then as far as returning data to a client application someone has to decide whether or not a multiline response is allowed by this command, if so clients/servers should be coded to allow it. > Never thought about it. Good question. > What does/should PAT do about that? In my server, you only get the first > header for those commands. But with the PAT format, you could of > course print out multiple responses for the same header. But I doubt any > implementation of PAT does that. > My HEADERS command would be forced to drop the extra headers, or combine > them all together as if they were one long header. > Are there any headers in common use that are allowed to be duplicated. > X-Comments: is something I think I've seen duplicated (or ones like that). > That would be one that would be OK to combine together I think. But if it's used for filter pattern matching then you could get the situation where a pattern is matched over the combined header but not in any individual instance. Which may give results that the end-user does not expect/want. [snip] > I'm thinking that maybe the correct approach is to ONLY return the first > header in the cases where it's duplicated. This would reinforce the > convention that "real" Usenet headers can not be duplicated. The HEADERS > command could still be used to help locate articles which had a To: header, > but if you want to be sure to get all the data for these non-standard > Usenet headers, you would just have to use the HEAD command. That's fine if you only want to know that a tuple exists, but for anything more than that it's just bad news. A couple of years ago Ingres changed its behaviour from returning the "first" row to generating an error in such a situation, that broke many peoples applications :( > HEADERS isn't meant to be the end-all solution for all your header needs. > It's just meant to be a "beter" form of XOVER that 1) allows applications > to leave out what they don't need, and 2) add in extras they may want like > MIME headers or Organization etc. >> (As a server implementor, I personally don't feel that the overhead of >> indexing 24kbytes per post of meower vanity headers is really worth it >> just to support HEADERS X-Fuckkkhead * or whatever.) > I don't index anything as it comes in. I do it all on demand and then > cache it. So I won't be wasting any time or storage indexing X-Fuckkkhead > headers unless a user starts asking for it -- and then the work is only > associated with the group in which they ask that. And, actually, my > current design is only able to cache the standard XOVER data, so > X-Fuckkkhead requests are always going to be slow. That's a reasonable approach re: the storage issues, but doesn't address the problem of whether 1 or all headers of the same type should be returned. -- <URL:http://www.pierrot.co.uk/> Team AMIGA Bespoke Client/Server RDBMS Analysis, Design and Programming....
Technical Details
Message-ID:
<20000301.190008.0AA80202.+Caa@pierrot.co.uk>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:
<87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000228153833.742$B7@newsreader.com> <951779481.407957@news.netscum.dk> <20000228212608.617$kG@newsreader.com> <87r9dw1yqz.fsf@erlenstar.demon.co.uk> <20000229123842.306$6M@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <20000301.190008.0AA80202.+Caa@pierrot.co.uk> Subject: Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT) Date: Wed, 01 Mar 2000 00:00:00 +0000 From: tez@pierrot.co.uk (Terrance Richard Boyes) References: <87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000228153833.742$B7@newsreader.com> <951779481.407957@news.netscum.dk> <20000228212608.617$kG@newsreader.com> <87r9dw1yqz.fsf@erlenstar.demon.co.uk> <20000229123842.306$6M@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: 591913263 X-PGP-Fingerprint: 20 66 0F E8 85 64 9C 2C 6F 82 6F 19 6C 2F 6A 1D X-Cancel-Lock: TEZT:ec0cf74ea0917e72fe2fd694cbc025ce 59adbaf8e77502c9a3a4d6adc708e2af X-PGP-Keyfile: <URL:http://www.pierrot.co.uk/pgpauth/> X-PGP-Auth: pub 512/3A14C4B9 1999/04/22 Tez Boyes <tez@pierrot.co.uk> iQBVAwUBOL1pXkXush46FMS5AQEqcAH9GZdF3+A0aN2xQnQpc8A02OywIS+dvfQ5 pe94NbAMcsydF38xrnGLn4LbKG9EDTuAEG9WS3/JtdPrce4PsVUFeQ== =pCUi X-NaMLServ: $VER: v0.9b <tez@pierrot.co.uk> X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!finch-post-11.mail.demon.net!pierrot.demon.co.uk!pierrot.co.uk!tez@pierrot.co.uk X-Trace: mail2news.demon.co.uk 951943089 mail2news:167 mail2news mail2news.demon.co.uk Organization: Pierrot Computers Ltd User-Agent: tin/pre-1.4-980618 (AMIGA) X-Lan-Trace: news.pierrot.lan 20000301.190008 news:+Caa IDENT tez@ami060.pierrot.lan Newsgroups: news.software.nntp