Article View: news.software.nntp
Article #64624Re: Newsreader programming - sorting one million lines ?
From: DS
Date: Mon, 31 Mar 2003 21:49
Date: Mon, 31 Mar 2003 21:49
77 lines
4799 bytes
4799 bytes
archiver@i3w.com (Juergen Helbing) wrote in news:0110l.v33205@archiver.winews.net: > From my own numbers (which are far worse) I would be jealous. > > But I'm still having the hope that you're using the "trick" to join > complete multiparts and dont keep all those headers. > At an average of 25-50 segments per multiparts the problem is > drastically reduced (perhaps even the best approach to solve > my own problem - which occurs mostly on multiparts). > That is a very good point. Unfortunately, in the database structuring, I had no choice to, at this time, save this data. I could go thru some 'normalization' technique's, but this will dramatically increase the complexity of the db functions. I could null the subject's of part's, but I still have a record for each part. Since the record's are 'filtered' first, then display that subset. I'm not working with them all anyway. Also, since I am using multiple server's to assemble part's across server's, if a multi-part become's complete on one server, is marked complete, joined, and the un-displayed(?) part's record's are removed, when that post become's complete on another server a few hours later, it will totally screw up all the data. > With 108k+ unique messages reduced to 2000-5000 kept headers > and just the full msgids I can live and still sleep well. > > With handling 108k+ new message headers fully in your database > I'm close to use del *.c on my own sources. ;-) > > > btw.: Speed of data handling is strongly a function of total size > and disk fragmentation. My own tool is performing lighting fast > for the first week and slows down significantly (50-70%) after > some months. But I'm not yet so far to write my own virtual > disk management to avoid FAT32 and/or NTFS. ;-) This is something I have never thought of, well I have but not in relation to my project. The drive I store these db's on has not been defragged in probably 9 month's, at least. This is the drive I do ALL my work on from d/l'g to CD burning, to EVERYTHING else. I tried a few weeks ago again and it said I didn't have enought free sapce to defrag.(OK, quick analyze says 'Total Fragmentation' 25%, 'File Fragmentation' 50%.) That's not good. I'd probably be kidding myself to think I'd see an improvement in performance after a defrag. > > > I ran an expiry on a.b.s.mp3 with 270.000 headers from some days > (they are having ~ 30.000 per day). This takes close to 1000 secs I expire automatically after header retreival, part of the joining process. No sense in having messages there that are expired already. So does a.b.s.mp3 typically have 270K headers in the XOVER ? A fresh db would contain 270K. At 30K/day, that would be 9 day's at 100% retention. Do yo typically see this? > and I am still happy because I'm reorganizing the 120 Meg XOVER > cache file in this time and I'm deleting 230.000 msgids from two > databases. > This was done on a P3/400 with with a 7200rpm IBM deskstar > 80 Gig drive formatted with FAT32 on WinXP with 256 MB ram. > (The minimum hardware requirements today ;-) > My PC is only a 1G Athlon, but 7200 Western Digital, and 512M RAM. I'm a little steep on RAM, kind of. I don't have any recent RAM usage statistics, but a month or 2 ago, I max'd out at using about 60 Meg, the most. I did do a setup package on a Win98 machine that has a K6-2/500 and it was a little slower. Maybe 10-20%, but it certainly was 1/2 the speed. Thanks for sharing your info, DS
Technical Details
Message-ID:
<Xns934FAB25D8D25idispcom@24.48.107.54>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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mailReferences:
<4540d.o33203@archiver.winews.net> <Xns93498CE88447Aidispcom@24.48.107.54> <Xns934B428C69A95JanC@213.118.75.56> <2605b.v33202@archiver.winews.net> <Xns934F6A37F2940idispcom@216.65.98.9> <1nuiyq8f4gl3k.dlg@40tude.com> <Xns934F8EB67D9C6idispcom@216.65.98.9> <0110l.v33205@archiver.winews.net>Show Full Headers
Complete Article Headers
Message-ID: <Xns934FAB25D8D25idispcom@24.48.107.54> Subject: Re: Newsreader programming - sorting one million lines ? Date: Mon, 31 Mar 2003 21:49:37 GMT 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> <Xns934F6A37F2940idispcom@216.65.98.9> <1nuiyq8f4gl3k.dlg@40tude.com> <Xns934F8EB67D9C6idispcom@216.65.98.9> <0110l.v33205@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Home User-Agent: Xnews/5.04.25 Lines: 76 NNTP-Posting-Host: 68.71.194.138 X-Complaints-To: abuse@adelphia.net X-Trace: news1.news.adelphia.net 1049147377 68.71.194.138 (Mon, 31 Mar 2003 16:49:37 EST) NNTP-Posting-Date: Mon, 31 Mar 2003 16:49:37 EST