Article View: news.software.nntp
Article #41317Re: NoCeM & INN2.3
From: bostic
Date: Thu, 04 Nov 1999 00:00
Date: Thu, 04 Nov 1999 00:00
42 lines
2599 bytes
2599 bytes
In article <ylpuxr8ak8.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: > bostic <bostic@bostic.com> writes: >> And yes, Berkeley DB can do better than 500 queries a second on >> commodity hardware. :-) I regularly see multiple thousands of queries a >> second on fairly low-end x86 hardware. > > Queries to a database whose total size is around 1.5GB? That's what kills > most database solutions. They can handle large quantities of data, and > they can handle lots of queries, but they can't handle both at once (at > least on low-end hardware). Keep in mind that the database is also doing > around 10 writes per second. Well, 1.5GB isn't all that large, but I agree with your basic point. To state the relatively obvious, if you miss your cache when you do a query/update, you've lost the war. Everybody's game plan is to pack the data pages as tightly as possible and keep your cache as hot as possible. And that may be the reason that NNTP has its own special purpose solution that no general-purpose database can touch -- it knows so much about what the data looks like that it can design data structures that maintain a hotter cache than any general purpose database could. That said, how much do you care about concurrency and recoverability? They're hard programming problems to solve, and when you design your own data structures instead of using a general model, then you have to write your own threading and recovery code, and that stuff's hard. --keith Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<7vqs8m$tgo$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-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> <ylpuxr8ak8.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <7vqs8m$tgo$1@nnrp1.deja.com> Subject: Re: NoCeM & INN2.3 Date: Thu, 04 Nov 1999 00:00:00 +0000 From: bostic@bostic.com 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> <ylpuxr8ak8.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-mail X-Deja-AN: 544161302 X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 199.103.241.218 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Nov 04 02:49:58 1999 GMT X-MyDeja-Info: XMYDJUIDbostic Newsgroups: news.software.nntp X-Http-User-Agent: Mozilla/4.04 [en] (X11; I; BSD/OS 4.0 i386)