Article View: news.software.nntp
Article #9311Re: XREF alternative for slrn
From: Olly Betts
Date: Mon, 15 Jul 1996 00:00
Date: Mon, 15 Jul 1996 00:00
62 lines
3535 bytes
3535 bytes
In article <4s6ufg$d8j$1@bushwire.mira.net.au>, Mark Delany wrote: >bet@ritz.mordor.com (Bennett Todd) writes: >>I don't believe this is correct; the history file is already indexed with the >>dbm version, and that can be random accessed very efficiently. Aha! I hadn't spotted that INN's own index of the history file was actually documented (in fact man history mentions it and refers to man dbz), which makes using it rather more legitimate. (The index is actually dbz, but the library has a dbm compatible API). >While agree with your assessment that the dbm access would be fast, >I'm not so sure about the need to access history in the first >place. And, as you rightly point it, that _if_ is a biggie. > >It strikes me that to get a message-id in the first instant, the >reader has to have fetched the article or at least a subset of the >headers. In doing such a fetch, the Xref header can be returned at no >additional I/O cost. For the current version of slrn, adding support for reading the history file would only benefit in the case of scoring on Xref: or marking an article read when all these are true: * the article is cross-posted to other groups carried on the server (as slrn knows the article number for the current group) * we're using the local spool backend (we can't look at the history file using NNTP) * we have a NOV database which doesn't include Xref: (otherwise we just look at Xref:) * we're scoring only on headers in the NOV database (otherwise slrn uses HEAD and internally builds NOV-like records) * the news server is INN, or uses the same history file and index format (since we're relying on the structure of the history file and its index) Using the dbz library that comes with INN, the extra code required is fairly small -- when a line is read from the overview file, use the message-id to do a look-up in the history file, then build the Xref: line and add it to the overview record returned. Then it looks just like the server has NOV with Xref:full configured in, and the user can score on Xref: and crossposts get killed. I'm not convinced (and I don't seem to be alone here) that the views that this sysadmin seems to have should be encouraged. He'll shave a small fraction of the size of his news spool, but increase the number of file accesses and incovenience anyone using NNTP, or with a local-spool newsreader which isn't able to read the history file. Which local-spool newsreaders can use the history file? Looking at the sources I have to hand, trn appears to have support; nn and tin appear not to. Olly -- cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
Technical Details
Message-ID:
<4sdgvv$9e7@sunforest.mantis.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:
<slrn4uce48.ub.rick@tolive.vnet.net> <4s61sl$aqs@sunforest.mantis.co.uk> <slrn4uds6k.9n7.bet@ritz.mordor.com> <4s6ufg$d8j$1@bushwire.mira.net.au>Show Full Headers
Complete Article Headers
Message-ID: <4sdgvv$9e7@sunforest.mantis.co.uk> Subject: Re: XREF alternative for slrn Date: Mon, 15 Jul 1996 00:00:00 +0000 From: olly@mantis.co.uk (Olly Betts) References: <slrn4uce48.ub.rick@tolive.vnet.net> <4s61sl$aqs@sunforest.mantis.co.uk> <slrn4uds6k.9n7.bet@ritz.mordor.com> <4s6ufg$d8j$1@bushwire.mira.net.au> 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: 169235957 Distribution: inet Content-type: text/plain; charset=iso-8859-1 Organization: Mantis Consultants Ltd, Cambridge. UK. Mime-version: 1.0 Newsgroups: news.software.readers,news.software.nntp