Article View: news.software.nntp
Article #21599Re: YOUHAVE transaction and speeding up nocem's
From: Torbjorn Lindgren
Date: Tue, 16 Sep 1997 00:00
Date: Tue, 16 Sep 1997 00:00
47 lines
2547 bytes
2547 bytes
Charles Ball <cball@bu.edu> wrote: >Olaf Titz (olaf@bigred.inka.de) wrote: >: In any case, it would be necessary to flock() the history text file in >: addition to the hash file. Unfortunately, you can't get away with this >: alone because of the second problem mentioned above. > >Has anyone tried using db version 2 (http://www.sleepycat.com/db) to >replace dbz? While this would have the disadvantage of storing hashes >in the hashfile, it offers advantages like shared rw support, >optional shared memory pools (cache), data-level transaction logs >with crash-recovery mechanisms, record level locking, etc. Db v2 >should be a drop in replacement using the included dbm() replacement >library, but the semester started while I was trying to do so and I'm >busy elsewhere for awhile. I don't think you get record locking and stuff like that using the legacy interfaces... It shouldn't be that hard to convert to the native db 2 interface, and it's likely to give much better performance. Another note for anyone interrested in actually doing this: If the posts is really *small*, it's likely that btree is actually faster than the hash access method. (With 16-byte key and 0 byte data btree was 2-3 times as fast, depending on the pagesize selected. Depending on page-size the bottlenecks seemed to be either to small pagesize, or to many hashes per page). Depending on the data-size this might or might not be the case, but I thought I should mention it so people actually benchmark the two relevant access methods instead of just assuming that hash is of course the best alternative. Also noteworthy is that db v2 has a different licensing agreement than older db's... -- Torbj�rn Lindgren E-mail: tl@funcom.com If Santa ever DID deliver presents on Christmas Eve, he's dead now.
Technical Details
Message-ID:
<5vm919$nj9$1@araga.funcom.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:
<5ud3lb$grv$1@news.cmc.net> <5ui1ir$cqv$1@bigred.inka.de> <5vjv5d$ovv$1@news1.bu.edu>Show Full Headers
Complete Article Headers
Message-ID: <5vm919$nj9$1@araga.funcom.com> Subject: Re: YOUHAVE transaction and speeding up nocem's Date: Tue, 16 Sep 1997 00:00:00 +0000 From: tl@funcom.com (Torbjorn Lindgren) References: <5ud3lb$grv$1@news.cmc.net> <5ui1ir$cqv$1@bigred.inka.de> <5vjv5d$ovv$1@news1.bu.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: 272996972 X-Complaints-To: bofh@funcom.com X-Trace: araga.funcom.com 874424169 24169 (None) 193.71.100.3 Organization: Funcom Oslo AS Newsgroups: news.software.nntp