Article View: news.software.nntp
Article #65427Re: article database schema?
From: Hector Santos
Date: Fri, 23 May 2003 04:07
Date: Fri, 23 May 2003 04:07
61 lines
3600 bytes
3600 bytes
> Hmm, I'll have to think about that. The whole point of this exercise is
to produce
> a workable system, so if it's as busy as you say, and I have no reason to
doubt you,
> then I'll have to rethink this. It's true I'm not designing my system to
replace Inn on
> a huge feed, but there's a couple of issues, one of just pure physical
storage, which is
> primarily a money issue, but the bigger issue, as you point out, of can
you write to
> that storage fast enough to keep up.
>
> I've got a preliminary DB schema worked out, and I'll have to see if I can
set up some
> stress tests of it with feeding articles, just for kicks.
We use a streaming database system with a fast indexing system. Our
customers tell us it is the fastest in the market. I'm not going to debate
with them whether it is or not. :-)
But we wouldn't be surprise as our proprietary message database format and
layout was designed during the early Satellite and Internet feed days where
data was constantly coming in. Since the mail is viewerable by different
mail clients (news, web, text mode, GUI, pop3, etc), we needed a consistent
client/server SDK to write/read access the database. In additional, since
it is a 24x7 system, we needed a automated server maintenance daemon that
pack/purge the database without admin interference. So fast indexing is
important, minimize seeking, caching as well as optimized client access
synchronization are all part of the equation.
Of course, I can't (now am I allowed) to give your our format, but I can
suggest that you create a Class Object that presents your I/O model. Then
you can explore with the backend without worrying about the frontend. For
example:
class CMessageIO
{
public:
AddMessage(....)
ReadMessage(....)
DeleteMessage(....)
SearchMessage(....)
FindMessageId();
FindReference(..);
FindHeaderLinePrim(..);
etc(...);
private:
CMessageIOIndexFile *index;
};
etc. Once you make your server work with abstract I/O model, your
exploration becomes a fun adventure.
--
Hector Santos
WINSERVER "Wildcat! Interactive Net Server"
support: http://www.winserver.com
sales: http://www.santronics.com
Technical Details
Message-ID:
<0_gza.9892$Zd6.5262@fe06.atl2.webusenet.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!pc01.webusenet.com!fe06.atl2.webusenet.com.POSTED!not-for-mailReferences:
<FOGcnYSbhbEOPiajXTWcqw@comcast.com> <4613m.c53200@archiver.winews.net> <ouycnV5bvohICF-jXTWcow@comcast.com> <20030514172038.370$O5@newsreader.com> <lrSdnYh_RYCD1FijXTWcrg@comcast.com>Show Full Headers
Complete Article Headers
Message-ID: <0_gza.9892$Zd6.5262@fe06.atl2.webusenet.com> Subject: Re: article database schema? Date: Fri, 23 May 2003 00:07:32 -0400 From: "Hector Santos" <junk@junkheaven.com> References: <FOGcnYSbhbEOPiajXTWcqw@comcast.com> <4613m.c53200@archiver.winews.net> <ouycnV5bvohICF-jXTWcow@comcast.com> <20030514172038.370$O5@newsreader.com> <lrSdnYh_RYCD1FijXTWcrg@comcast.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!pc01.webusenet.com!fe06.atl2.webusenet.com.POSTED!not-for-mail Newsgroups: news.software.nntp Lines: 59 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Thu, 22 May 2003 23:56:44 EDT