🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #65293

Re: article database schema?

#65293
From: Curt Welch
Date: Wed, 14 May 2003 21:20
44 lines
3388 bytes
bobyetman@comcast.net wrote:
> Actually, IMHO, a news database is primarily read access, with occasional
> writes when new articles are posted by users/fed from remote sites, and
> the daily expire of old articles.    Pretty typical database stuff.
> Most of the nntp commands can be implemented as SQL queries, simplifying
> the coding of the server software.

SQL databses sucks for storing news.  They aren't optimized for hoding that
type of data.  Yes, it can be no doubt be done, and it might even work OK,
but a simple custom database will be far more efficient.

If you are only trying to store a few small text groups, then the extra
overhead of the relational database is going to be no biggie.  But a full
feed news server (which is nothing more than a specialized database), has
to move a lot of data very quickly.  Even a full text feed is going to be
an issue I suspect with a typical relational database.  For a full feed,
you don't just have "occasional writes" for new articles.  YOu have 30 per
second, 24x7.  And if your server goes down for a few minutes, you have to
receive them must faster so you can catch up with what you missed.  And
because you expire as fast as you receive, you have to delete 30 per second
as well.

But for a full feed, the article rate isn't even the big issue.  It's the
shear volume.  A full feed server has to support 80 Mbits of data comming
in 24x7 totay, and it will double in less than a year.

It's not that this stuff can't be done with a standard relational database,
it's just that the extra overhead it adds means you might need a server
which was 4 times larger (and more than 4 times as expensive) to keep up
with the flow.

And of course all that volume is before you start getting users to access
the server.

If you limit your application to a few text groups, and one user reading
(i.e. a little personal server), then sticking things in a relation
database will probably work.  But if you get to large full text feed
server, or something that will support a few hundred users, you are wasting
you time playing with a relational database.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030514172038.370$O5@newsreader.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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <FOGcnYSbhbEOPiajXTWcqw@comcast.com> <4613m.c53200@archiver.winews.net> <ouycnV5bvohICF-jXTWcow@comcast.com>

Show Full Headers
Complete Article Headers
Message-ID: <20030514172038.370$O5@newsreader.com>
Subject: Re: article database schema?
Date: Wed, 14 May 2003 21:20:38 +0000
From: curt@kcwc.com (Curt Welch)
References: <FOGcnYSbhbEOPiajXTWcqw@comcast.com> <4613m.c53200@archiver.winews.net> <ouycnV5bvohICF-jXTWcow@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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com S_xD0x4rqbm0l,kRAqaEM.x0l1d4oLJPEdIX+Cm.TXkPEfhqWY
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 43