Article View: news.software.nntp
Article #41295Re: NoCeM & INN2.3
From: Andrew
Date: Thu, 04 Nov 1999 00:00
Date: Thu, 04 Nov 1999 00:00
36 lines
2803 bytes
2803 bytes
In article <7vqtad$u3u$1@nnrp1.deja.com>, bostic@bostic.com wrote: >> Now if I understand the way that BerkeleyDB's hash method works, then >> the lookups for nonexistent entries will overwhelm the cache, as pages >> get read in to locate the data that isn't there. > >This is correct. Depending on the randomness of the queries >you may very possibly flush the cache by asking for lots of >nonexistent records. (This is a good example of what I was >saying in another post -- if you know a lot about your data >access pattern, you can win in the specialized case.) Both dbz and my variant (dbat) keep a hashtable separate from the data, and generally (at least with dbat or the current dbz) aim to handle the case of a failed lookup without having to read the actual data files (which are much larger). The hash tables are small enough to keep incore all the time, and the data file is in time-order, which helps a bit in terms of locality of reference. >That said, I'm surprised that you use hashing. Why not B+trees? >I would expect there to be a fair amount of locality in message >IDs, particularly when you're talking to some set of sites. >Don't the same sites feed you articles from the same backing >sites? If you're seeing locality of reference in those requests, >you should be able to determine that the requested item doesn't >exist with minimal effort in a B+tree. I don't think there's anything to be gained here, because message-ids are intended to be unpredictable, and what patterns there are probably aren't useful. In any case, it's dangerous to make assumptions about them, because the situation can change almost overnight. -- Andrew, Supernews http://www.supernews.com - UK and US individual and corporate NNTP services
Technical Details
Message-ID:
<slrn8226b9.edk.andrew+news@uk21.supernews.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:
<3819A774.9C57FDCA@boerde.de> <ylyachnwki.fsf@windlord.stanford.edu> <87u2n5wa1n.fsf@slip-32-100-243-27.ma.us.prserv.net> <yl66zlnugn.fsf@windlord.stanford.edu> <7vnkfo$cpt@bigred.inka.de> <ylg0yomrmj.fsf@windlord.stanford.edu> <7vpog2$2qm$1@nnrp1.deja.com> <slrn821emt.edk.andrew+news@uk21.supernews.com> <7vqtad$u3u$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn8226b9.edk.andrew+news@uk21.supernews.com> Subject: Re: NoCeM & INN2.3 Date: Thu, 04 Nov 1999 00:00:00 +0000 From: andrew+news@supernews.com (Andrew) References: <3819A774.9C57FDCA@boerde.de> <ylyachnwki.fsf@windlord.stanford.edu> <87u2n5wa1n.fsf@slip-32-100-243-27.ma.us.prserv.net> <yl66zlnugn.fsf@windlord.stanford.edu> <7vnkfo$cpt@bigred.inka.de> <ylg0yomrmj.fsf@windlord.stanford.edu> <7vpog2$2qm$1@nnrp1.deja.com> <slrn821emt.edk.andrew+news@uk21.supernews.com> <7vqtad$u3u$1@nnrp1.deja.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: 544264616 X-Complaints-To: newsabuse@remarq.com X-Trace: 941693290 .MYBPHMNN00017F00C uk21.supernews.com Organization: RemarQ http://www.remarQ.com User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: andrew@supernews.com Newsgroups: news.software.nntp