Article View: news.software.nntp
Article #38541Re: What is the DBZ database
From: Curt Welch
Date: Fri, 09 Jul 1999 00:00
Date: Fri, 09 Jul 1999 00:00
37 lines
2667 bytes
2667 bytes
Asle Pedersen <apederse@grm.hia.no> wrote: > > In INN and its predecessors, the articles are stored in individual > > files, indexed by message ID. History is a simple text file listing > > the IDs and their locations; dbz provides an on-disk hash table to > > quickly locate an entry in that file. So, dbz is really just a > > simplified/optimized version of the dbm-style databases found in lots > > of programs. > > I'm a bit confused by this answer because I read an answer by Curt Welch > to another question in this category and he says (quote): I'm not sure which point confuses you, but... > "Older systems would store each article in a separate file in a file > system but the overhead for that has grown too large for today's Usenet > volumes......" Let me say that some people still run inn in the mode where each article is stored in it's own file. But to keep up with a full feed you need a lot more disk bandwidth than whey you use one of the various techniques of store multiple articles together in large files. The db familly of "data base access" functions create a hashed disk file. This is used to create the index by Message-ID -- i.e. so given a message I.D. you can quickly (i.e. with not too many disk reads) find the associated article. With inn (at least the old inn), what you got out of the dbz file was the address of the line in the history file that contained the article's Message-ID and the list of groups it was posted to along with the article number assigned for each group. With the new inn you get this long "token" which is used to locate the file in the cyc bufs (at least I think that's how it works...) -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<19990709082117.851$Qn@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-mailReferences:
<3784A379.47A4C53E@grm.hia.no> <871zejmd2p.fsf@slip-32-101-160-82.ma.us.ibm.net> <3785B213.350EDC9B@grm.hia.no>Show Full Headers
Complete Article Headers
Message-ID: <19990709082117.851$Qn@newsreader.com>
Subject: Re: What is the DBZ database
Date: Fri, 09 Jul 1999 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <3784A379.47A4C53E@grm.hia.no> <871zejmd2p.fsf@slip-32-101-160-82.ma.us.ibm.net> <3785B213.350EDC9B@grm.hia.no>
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: 499071780
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp