Article View: news.software.nntp
Article #65577Re: Which is faster: retrieve article by article number, or by Msg-ID?
From: DS
Date: Sat, 31 May 2003 15:22
Date: Sat, 31 May 2003 15:22
101 lines
6821 bytes
6821 bytes
> > DS: did you write a special sorting routine / specialised database > thingy for your XOVER stuff? Hey. A question to me ! Cool. So I had been following some of the discussion's here regarding reducing XOVER traffic and had considered attempting to reduce it in my program. I decided to just do a straight XOVER for each group from each server. IMO, and in my case, the additional work in development and in processing code lost out. The server's I use have very different retention time's, so maybe only 25-50% (at best) of the messages are on all the server's and back filling from additional servers seemed like excessive work. No one server is super huge with all completes. In the XOVER command, a header dataset is parsed out. If, by msgID, it is not in the group db, it is added. If it is already there, I just store the message number under the server it's on. Each group db has fields for each part of the header, msgID, date, subject, etc., and a couple calculated fields like partNumber and totalParts, and a long integer field for each server that carries that group. The server field is where the msg Number is stored. I don't know if you would consider this a specialized thing or not. I'm only storing the entire msg once, but also saving each individual server's msgNumber for that msg in the same record. I guess I'll have to come clean and let you know that I decided NOT to create my own database engine as you are, and as many people do. I am using the M$ Jet engine and storing each group in it's own .mdb file. I, personally, would never be able to manipulate data nearly as fast as Jet. The biggest plus to this is being able to use SQL queries which I build dynamically in code, for sorting, filtering, displaying, and doing mass update's to records. Using SQL queries with Jet it is VERY easy to get exactly the data you want, sorted and filtered exactly the way you want, quickly. After building of any such SQL query, it's a matter of 2 lines of code to create a recordset containing all of the requested data, or delete records as above, etc. I'll hand that work over to the db engine. So this is why I chose Jet for the db provider. To me, it's just a matter of building string's and not having to do all the low-level sorting you are doing. And while it may take 8 second's to open the MP3 Virtual Group the first time (currently 75,000 unique msg's/part's across 6 different groups and 5 different servers), to re-sort or filter takes only 2 seconds, due to Jet caching the data, again, waaaaay better than I ever could. Additionally, the amount of RAM a machine has is not OVERLY critical. As we all know the more RAM the better, but I, personally, am not loading a huge amont of data into RAM. Jet may be, but Jet knows how to handle smaller amounts of memmory to do what it's got to do. While true it will run slower if you've only got 64 Megs, chances are it will still run. So the answer to your question Bas is no, I'm cheating and using an outside db engine. Some of my programming strengths are UI design and string manipulation, not low-level sorting and filtering. While it's true I'm doing winsock programming, my application is nothing more than a UI to the data below. So I am focusing my efforts on coming up with an easy to use, easy to learn UI that makes sense, and present's exactly the data you are looking for, and letting Jet handle all the data manipulation by just giving it a few criteria with which to build the recordset from. Then just displaying it in a listview. Simple as that. From my own experience's, if I can't get a newsreader to do what I want in 10 minutes, I'm onto the next package. I was invovled in a thread in news.software.readers in reference to a comment that XNews was the best for downloading binaries, well for ANYTHING it was, to which I disagreed. I spit out some stuff that ZeoNews and NewsGrabber, for binaries, can do and asking how to do that in XNews, for this guy to prove his point. He eventually did come back with a few answers, but it was 'you edit this config file, then start seperate queues' and do this and do that. It was obvious that he has been using XNews for a long time, and came up with all these workaround's to get multiple download thread's, and getting part's from different server's. I'm not looking for that. Just queue, that's all. Almost no learing curve what-so-ever. I know some may laugh, but I will defend my decision to use Jet until I find something just as powerful and easy to use and is low-cost. Hey, I just checked out your website in the sig file below. I didn't realize you are the author of NewsBinPro. It seems as though you are asking pretty basic question considering you have already authored NewBin. I guess you're just looking for better ways. Cheers, DS > > -- > Bas Ruiter > > e-Mail: lordsnow@home.nl > www: http://members.home.nl/lordsnow
Technical Details
Message-ID:
<Xns938C75DEABD4Eidispcom@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!headwall.stanford.edu!newshub.sdsu.edu!cyclone.bc.net!news-out.newsfeeds.com!l2!corp-news.newsgroups.com!not-for-mailReferences:
<npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <3ed4c2ea$0$2598$a1866201@newsreader.visi.com> <jbj9dvkc97essifpac828cc8167c6se2hc@4ax.com> <20030528112007.074$Pl@newsreader.com> <mql9dvk0a9mmpvh4bjufshjrfh05c271k8@4ax.com> <20030528160241.048$tn@newsreader.com> <akjadvcd5d5nin6dj2ltu1k73eg6qk1uom@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns938C75DEABD4Eidispcom@216.65.98.9> Subject: Re: Which is faster: retrieve article by article number, or by Msg-ID? Date: Sat, 31 May 2003 15:22: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: <npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <3ed4c2ea$0$2598$a1866201@newsreader.visi.com> <jbj9dvkc97essifpac828cc8167c6se2hc@4ax.com> <20030528112007.074$Pl@newsreader.com> <mql9dvk0a9mmpvh4bjufshjrfh05c271k8@4ax.com> <20030528160241.048$tn@newsreader.com> <akjadvcd5d5nin6dj2ltu1k73eg6qk1uom@4ax.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!headwall.stanford.edu!newshub.sdsu.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: 100 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.