🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64614

Re: Newsreader programming - sorting one million lines ?

#64614
From: DS
Date: Mon, 31 Mar 2003 15:16
43 lines
3403 bytes
> 
>>MS Access saves *all* data & indexes from all DB tables in 1 file, and
>>the file size limit on FAT32 partitions is about 2 GiB (2^31 bytes).
>>I think you'll reach that limit faster than you wished...
> 

The above was a reply to my post regarding the use of MS Access table's 
in my newsreader.

I already replied to this msg once, but now have data relating to this.

Each of the group's has it's own database file. Inside each .mdb is a 
table that hold's the group's header information, along with information 
interpereted from said header's.

In a 'clean' database (compacted), each header takes up about 500 bytes 
of filesize, 1/2 a K. So doing the math, this would allow storage of 
ROUGHLY 4,000,000 headers in a 2 GB file.

Believe me, I spent almost 2 months (of spare time) just refining the 
database structure's and managing them, and this is how I got the best 
performance. Having individual db's for each group also help's in case of 
any type of corruption. The 'entire' database will not need to be 
rebuilt, most likely only a single group.

I have also heard about concern's using Jet in a high traffic environment 
with problems of database corruption. I have not suffered any database 
corruption related to this whatsoever throughout development. The only 
time I did have a DB file (only ONE) become corrupt was when a coding 
error put my PC in an infinite loop, that, for some reason, the only way 
to get out of it was to press the reset button.

Also, you have to remember, my newsreader application is intended for 
multi-threaded downloading of multi-part binaries, from multiple servers. 
Anything that is expired from the servers is removed from the db, so the 
chance of seeing 4,000,000 headers in one group XOVER is highly doubtful 
(at this juncture anyway).


Regards,

DS
Technical Details
Message-ID: <Xns934F6A37F2940idispcom@216.65.98.9>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-out.newsfeeds.com!l2!corp-news.newsgroups.com!not-for-mail
References: <4540d.o33203@archiver.winews.net> <Xns93498CE88447Aidispcom@24.48.107.54> <Xns934B428C69A95JanC@213.118.75.56> <2605b.v33202@archiver.winews.net>

Show Full Headers
Complete Article Headers
Message-ID: <Xns934F6A37F2940idispcom@216.65.98.9>
Subject: Re: Newsreader programming - sorting one million lines ?
Date: Mon, 31 Mar 2003 15:16:18 +0000
From: DS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t>
References: <4540d.o33203@archiver.winews.net> <Xns93498CE88447Aidispcom@24.48.107.54> <Xns934B428C69A95JanC@213.118.75.56> <2605b.v33202@archiver.winews.net>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-out.newsfeeds.com!l2!corp-news.newsgroups.com!not-for-mail
Newsgroups: news.software.nntp
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: corp-news
Lines: 42
X-Authenticated-User: $$35brch-
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com> You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 100,000+ UNCENSORED Newsgroups.