Article View: news.software.nntp
Article #64619Re: Newsreader programming - sorting one million lines ?
From: Juergen Helbing
Date: Mon, 31 Mar 2003 19:10
Date: Mon, 31 Mar 2003 19:10
51 lines
3053 bytes
3053 bytes
DS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t> wrote: >Joining & Expiring: 17 seconds (a little longer than I thought, but I >don't usually work with this large a group, usually ~50k msg's group) >The way I am doing it is only working with the messages to be displayed. >Even tho there is 108+K unique messages, I'm selecting 1739 of them to >display. I first select them on a boolean field (display), then sort the >subset of the entire group. Because of this displaying them and resorting >them only takes a very small amount of time. > >Does any of this sound reasonable, I mean, are these number's way off, >good, bad ? 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). 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. ;-) 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 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 ;-) Good work. -- Juergen
Technical Details
Message-ID:
<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!wn14feed!wn13feed!worldnet.att.net!207.14.113.17!news.alt.net!usenetReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <0110l.v33205@archiver.winews.net> Subject: Re: Newsreader programming - sorting one million lines ? Date: Mon, 31 Mar 2003 19:10:01 +0000 From: archiver@i3w.com (Juergen Helbing) 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> 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!wn14feed!wn13feed!worldnet.att.net!207.14.113.17!news.alt.net!usenet Newsgroups: news.software.nntp Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Lines: 50 X-Newsreader: MyNews