Article View: news.software.nntp
Article #9009Virtues of RDBMS as news server (was: Re: Let's put compression into NNTP -- I am willing to pay)
From: J.B. Nicholson-Owens
Date: Wed, 03 Jul 1996 00:00
Date: Wed, 03 Jul 1996 00:00
61 lines
4034 bytes
4034 bytes
On Wed, 03 Jul 1996 08:02:36 -0400, Evan Champion <evanc@synapse.net> wrote: > If that is the case, I'm 100% for it. News servers are IMHO just > special-purpose database servers, and SQL is the language of > database servers. I'm currently working on using an RDBMS (probably mSQL, definately something free) as the back-end to a news server. I'm doing quite a bit of reading first to learn about relational database design, but after perusing a couple SQL books on the market, I'm surprised how underrated SQL is (and how much of a news server can be built just by using SQL). > I think the effort level required to implement SQL in INN would > be significant. Things aren't indexed etc. in ways that would > make searching on whatever you want (which SQL lets you do) either > very slow/heavy server burden, or are just not possible. For > example, you can't presently say "find all articles from Bob" > unless you plan on searching the entire contents of a news spool. Also, this problem is compounded by heirarchical storage. If there is no metadata or if there is inaccurate metadata, searching through more than a few groups is a lot of work for the server. > I could see it being more feasable redoing the entire INN structure > as a real database server with database clients to handle the actual > reception and transmission of articles. This is what I'm doing, the benefits are that new searches are possible and hopefully (with the right table layout and some clever queries) NNTP searches are no slower than they are now with a traditional server (like INN). Also, the idea of an expire process goes away; in general, everything is event-based, not dependant on periodic processes that walk over some or all of the entire database (like an expire process). This in turn means overview data need not be out of sync with the contents of the database and some headers can be generated on demand. The most significant drawback is requiring access to the database via NNTP (direct accesses to the files maintained by the database will probably not be compatible with today's file arrangment). As I read relevant RFCs it's surprising how much implementation detail is discussed in what are ostensibly generic access APIs. > I suppose you could then use any SQL client you wanted to talk > to a news server. You could, but I wouldn't want to. There are a number of UI niceties that come with using a newsreader. In my opinion, it's a good thing that there is this implementation-hiding API (NNTP) standing between the server and client, what's unfortunate is that NNTP's searching capability is so bad. Even with SQL queries sent directly from the client to the server, the client needs to know the namespace and arrangement of the tables. If more than one person takes on the task of reimplementing a server based on an RDBMS, more than one table layout system might result. NNTP (or any standard access API) makes it such that any newsreader can talk to any news server. Also, I wouldn't give random users access to delete or update rows. -- Due to local news server and feed problems, I might not see all followups.
Technical Details
Message-ID:
<slrn4tlb6n.i3o.jbn@mystery-train.cu-online.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!not-for-mailReferences:
<4qs8mb$abu@fugue.clari.net> <4qv03v$hvi@olivea.ATC.Olivetti.Com> <4r92ei$nr2@necco.harvard.edu> <4r9oq3$1o8$1@bushwire.mira.net.au> <4rcvg3$1mo@imp.serv.net> <31DA615C.7C66@synapse.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn4tlb6n.i3o.jbn@mystery-train.cu-online.com> Subject: Virtues of RDBMS as news server (was: Re: Let's put compression into NNTP -- I am willing to pay) Date: Wed, 03 Jul 1996 00:00:00 +0000 From: jbn@mystery-train.cu-online.com (J.B. Nicholson-Owens) References: <4qs8mb$abu@fugue.clari.net> <4qv03v$hvi@olivea.ATC.Olivetti.Com> <4r92ei$nr2@necco.harvard.edu> <4r9oq3$1o8$1@bushwire.mira.net.au> <4rcvg3$1mo@imp.serv.net> <31DA615C.7C66@synapse.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!not-for-mail X-Deja-AN: 163510396 Distribution: inet Organization: Organizing Organisms & Organs Newsgroups: news.software.nntp