Article View: news.software.nntp
Article #64626Re: Newsreader programming - sorting one million lines ?
From: DS
Date: Mon, 31 Mar 2003 23:01
Date: Mon, 31 Mar 2003 23:01
60 lines
3356 bytes
3356 bytes
>
> Ok, then the limiting factor is your connection, not your processing.
>
Well yes and no. The limiting connection here is ultimately the db
engine. I can only process roughly 1 mBit/second. With my account, i can
get that with 4 server's simultaneously.
>> I couldn't agree more. I don't know what kind of percentage of users
>> would be NOT on a DSL or Cable connection, and NOT go thru the
>> internet.
>
> Quite a few. Hamster is pretty popular and there is a user base that
> has connections faster than DSL.
I'll have to research this a little more.
> Just to get this right. Are you feeding the XOver data into your
> database while doing the XOver?
> I doubt that you will see going 2MBits/sec into your db.
I will never see 2m bit/sec into the database. Yes I am feeding data into
the database during the XOVER's. At a max around 1 mBit/sec download
throughput, not 1 mBit/sec of data. During the XOVER here is what is
happening:
1. RX XOVER data packet
2. add packet to remaining data from previous packet if necessary.
3. parse the packet into header 'dataset's'
4. loop thru it sending each 'dataset' to the parser.
for each header 'dataset'-
5. parse each 'dataset' into relevent fields
6. do some detection to see if it's part of a multi-part
7. stuff some interpereted data into a couple fields for use in
joining
8. pass each 'dataset' to the dbstuffer
9. check to see if the msgID is existing.
10. either add the entire record, if it wasn't added previously,
or,
update one field for the duplicate msg on a different server.
(loop to step 4 until all full dataset's are processed)
11. store leftover data from the packet to add to the next new packet
step 1 all over again.
> 600 to 800 hps should be a good value. Up to 1000 should be possible.
Sad to say not to me. But I should be able to provide some comparison
numbers in a week or 2. I'm building a P4 2 GHz PC for someone that I was
planning to test on.
Regards,
DS
Technical Details
Message-ID:
<Xns934FB7529DD32idispcom@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!logbridge.uoregon.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> <4lt0oyjp7vbg.dlg@40tude.com> <Xns934FA6983F118idispcom@24.48.107.53> <p0zqv8sqtiju.dlg@40tude.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns934FB7529DD32idispcom@24.48.107.54> Subject: Re: Newsreader programming - sorting one million lines ? Date: Mon, 31 Mar 2003 23:01:27 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> <4lt0oyjp7vbg.dlg@40tude.com> <Xns934FA6983F118idispcom@24.48.107.53> <p0zqv8sqtiju.dlg@40tude.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.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: 59 NNTP-Posting-Host: 68.71.194.138 X-Complaints-To: abuse@adelphia.net X-Trace: news1.news.adelphia.net 1049151687 68.71.194.138 (Mon, 31 Mar 2003 18:01:27 EST) NNTP-Posting-Date: Mon, 31 Mar 2003 18:01:27 EST