🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64516

Re: Newsreader programming - sorting one million lines ?

#64516
From: Juergen Helbing
Date: Tue, 25 Mar 2003 06:12
40 lines
2086 bytes
greg andruk <gja@meowing.net> wrote:

>archiver@i3w.com (Juergen Helbing) writes:
>
>> So here finally my question:
>> How do you sort your header-lists if they dont fit into memory ?
>
>Look on Google for tape-sort and merge-sort.  

<smile>
I'm still having my old scripts from the university...

>The basic idea is to
>break the data into chunks that fit into memory, sort and save them
>into temporary files, then merge the chunks back together to obtain
>your complete sorted list. The more tape drives you have, the faster
>you can sort.  You can use disk files instead of scratch tapes, but
>that's cheating.

The charm of having "more tape drives" was that writing could be 
done seperately with full speed to all tape-drives.
A hard-disk with 5 or 10 files would need permanent movements
of the disk-heads. And using 5-10 harddrives is not a serious
option for normal computer users....


>There are quite a few variations on this idea.  You might also
>consider using a database with multiple indexes, this could be easier
>but maybe slower if you end up generating indexes that are rarely
>used.

Yes, maintaining multiple indexes seems to be the consequence.
I just hoped I could avoid the programming work.


Thanks for your answer.
-- 
Juergen

Technical Details
Message-ID: <41127.p33206@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!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!news-out.visi.com!petbe.visi.com!news.alt.net!usenet
References: <4540d.o33203@archiver.winews.net> <m28yv4304d.fsf@meowing.net>

Show Full Headers
Complete Article Headers
Message-ID: <41127.p33206@archiver.winews.net>
Subject: Re: Newsreader programming - sorting one million lines ?
Date: Tue, 25 Mar 2003 06:12:41 +0000
From: archiver@i3w.com (Juergen Helbing)
References: <4540d.o33203@archiver.winews.net> <m28yv4304d.fsf@meowing.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!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!news-out.visi.com!petbe.visi.com!news.alt.net!usenet
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 39
X-Newsreader: MyNews