🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
36 messages
36 total messages Started by Jerry Aguirre Thu, 27 Jun 1996 00:00
Re: Let's put compression into NNTP -- I am willing to pay
#8830
Author: Jerry Aguirre
Date: Thu, 27 Jun 1996 00:00
37 lines
2473 bytes
In article <4qs8mb$abu@fugue.clari.net> brad@clarinet.com (Brad Templeton) writes:
>The quick and dirty way is to put in quick transmit compression to sending
>programs and INN and NNTPD.  Combined with streaming, compress batches
>(which gives you 3 to 1 or better on text articles) and send, decompress
>on arrival.   The disadvantage is lots of CPU for compression.

The current concept of sending the article, terminated by a \r\n.\r\n is
not going to work very well with compression.  Not that I ever liked that
model anyway.

An alternative would be to have two channels.  One channel is the standard
NNTP stream.  Note that streaming mode is perfectly capable of checking
IDs for duplicates without the requirment to actually send the articles
on the same channel.

Open a second channel, like FTP does, and shoot a standard compressed
bach format.  I.E. the "#!rnews NNNNN" format.  This works well enough
and has existing debugged code.

>The big win about that is to push for end to end compression.  This means
>articles are compressed upon posting or upon entry into the compressed
>world.   They are then stored compressed on disk, and sent to other
>recipient clients and readers that can handle them compressed.  If the
>recipient can't handle compressed they are uncompressed and sent normally.

Brad, this has been hashed over enough times that you should know the
"gotchas".  The server can not just receive a compressed article and
write it to disk.  It needs to de-compress it to look at the insides
so it knows newsgroups, dates, etc.

Worse, it modifies every article.  At a minimum the "Path" gets updated.
Greater use is being made of the "Xref" header also so that must be
updated.  So at the minimum you need to uncompress the article, modify
it, and then re-compress.  You would save in storage and transmission
though.

Re: Let's put compression into NNTP -- I am willing to pay
#8865
Author: Miquel van Smoorenburg
Date: Fri, 28 Jun 1996 00:00
18 lines
1376 bytes
In article <4qv03v$hvi@olivea.ATC.Olivetti.Com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
>In article <4qs8mb$abu@fugue.clari.net> brad@clarinet.com (Brad Templeton) writes:
>>The quick and dirty way is to put in quick transmit compression to sending
>>programs and INN and NNTPD.  Combined with streaming, compress batches
>
>Worse, it modifies every article.  At a minimum the "Path" gets updated.

Uhm, but what if you only compress the *body* ? And add a header called
X-Body-Compressed: gzip

Mike.
-- 
  Miquel van    | Cistron Internet Services   --    Alphen aan den Rijn.
  Smoorenburg,  | mailto:info@cistron.nl          http://www.cistron.nl/
miquels@het.net | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)

Re: Let's put compression into NNTP -- I am willing to pay
#8869
Author: Brad Templeton
Date: Fri, 28 Jun 1996 00:00
22 lines
1785 bytes
In article <4qv03v$hvi@olivea.ATC.Olivetti.Com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
>Brad, this has been hashed over enough times that you should know the
>"gotchas".  The server can not just receive a compressed article and
>write it to disk.  It needs to de-compress it to look at the insides
>so it knows newsgroups, dates, etc.
>
>Worse, it modifies every article.  At a minimum the "Path" gets updated.
>Greater use is being made of the "Xref" header also so that must be
>updated.  So at the minimum you need to uncompress the article, modify
>it, and then re-compress.  You would save in storage and transmission
>though.

Of course -- you don't compress, or privately compress the special headers
you know the system has to look at so that it can look at them and
modify them.  But the rest of the data should just be bits to the system when
written out to disk, and then unpacked by the reader or nnrp server.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: Let's put compression into NNTP -- I am willing to pay
#8876
Author: Joe Greco
Date: Sat, 29 Jun 1996 00:00
30 lines
2020 bytes
In news.software.nntp article <4qv03v$hvi@olivea.ATC.Olivetti.Com>, jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) wrote:
:In article <4qs8mb$abu@fugue.clari.net> brad@clarinet.com (Brad Templeton) writes:
:>The quick and dirty way is to put in quick transmit compression to sending
:>programs and INN and NNTPD.  Combined with streaming, compress batches
:>(which gives you 3 to 1 or better on text articles) and send, decompress
:>on arrival.   The disadvantage is lots of CPU for compression.
:
:The current concept of sending the article, terminated by a \r\n.\r\n is
:not going to work very well with compression.  Not that I ever liked that
:model anyway.
:
:An alternative would be to have two channels.  One channel is the standard
:NNTP stream.  Note that streaming mode is perfectly capable of checking
:IDs for duplicates without the requirment to actually send the articles
:on the same channel.

Been there, done this.

What you will find is that if you have a number of feeds very closely in
sync, you will end up getting the same article multiple times..  :-/

It works well unless something starts to backlog..  

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968

Re: Let's put compression into NNTP -- I am willing to pay
#8907
Author: Jerry Aguirre
Date: Mon, 01 Jul 1996 00:00
15 lines
1328 bytes
In article <4r3hs9$dd0@brasil.moneng.mei.com> jgreco@brasil.moneng.mei.com (Joe Greco) writes:
>What you will find is that if you have a number of feeds very closely in
>sync, you will end up getting the same article multiple times..  :-/

It is possible to set up innd such that when a "check" is done innd
flags the ID and will refuse duplicates using a "try again later"
response code until either the article is received or a timeout is
exceeded.  The "ihave" code does this but I don't think the "check"
code currently does.

This would eliminate duplicates for conventional streaming or one
using a separate batched channel.

Re: Let's put compression into NNTP -- I am willing to pay
#8909
Author: Harry Bochner
Date: Mon, 01 Jul 1996 00:00
30 lines
2067 bytes
In article <4r3hs9$dd0@brasil.moneng.mei.com>, jgreco@brasil.moneng.mei.com (Joe Greco) writes:
|> :An alternative would be to have two channels.  One channel is the standard
|> :NNTP stream.  Note that streaming mode is perfectly capable of checking
|> :IDs for duplicates without the requirment to actually send the articles
|> :on the same channel.
|> 
|> Been there, done this.
|> 
|> What you will find is that if you have a number of feeds very closely in
|> sync, you will end up getting the same article multiple times..  :-/

I'd be interested in hearing more about Joe's implementation.

It seems to me, though, that there are ways to implement this kind of scheme that
avoid this problem. If nothing else, it should be possible to hold off replying
to a particular IHAVE when one of the feeds has already been sent a SENDME.

Note that nothing in this scheme requires that IHAVE's be replied to in the order
they were sent. So if the receiving end has gotten IHAVE <1@foo.com> from both
feeds A & B, it can send SENDME <1@foo.com> to feed A, and in the meantime
go on processing other IHAVE's from both feeds. In feed A fails to come through
with the article within some configurable time limit, then the receivor can
request the article from feed B (or any other feed that offered it).

-- 
Harry Bochner
bochner@das.harvard.edu

Re: Let's put compression into NNTP -- I am willing to pay
#8912
Author: Harry Bochner
Date: Mon, 01 Jul 1996 00:00
93 lines
5179 bytes
In article <4qv03v$hvi@olivea.ATC.Olivetti.Com>, jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:
|> An alternative would be to have two channels.  One channel is the standard
|> NNTP stream.  Note that streaming mode is perfectly capable of checking
|> IDs for duplicates without the requirment to actually send the articles
|> on the same channel.

This in an idea that Ken Herron and I have talked about a bit in the past.
Here's a proposal I wrote last fall; I think it's still pretty relevant.

                On Beyond Streaming ...

Getting large volumes of News through slow links faces two related
problems:

1) Long Round Trip Time (RTT)
2) Limited bandwidth

Standard NNTP degrades very badly when RTT is long, because of the
lock-step synchronous nature of the protocol. The existing streaming
patches for INN break out of this lock-step, and do a good job of
addressing problem (1). But it seems likely that problem (2), limited
total bandwidth, will soon be a problem for some sites as well, and
the existing streaming patches for INN do nothing to address this.

There are basically two strategies for dealing with limited bandwidth:
compression, and being more selective about what articles to send.
Both of these have some overhead associated with them, but both seem
like they could be very useful for some sites. So it would be useful
to have a protocol that supported these strategies as options. And,
of course, the protocol would have to be asynchronous, so that it
doesn't suffer when RTT is long.

This leads to two basic ideas:

A) The protocol should be more flexible, with a range of options that
   can be negotiated during the initial handshaking. (And perhaps
   renegotiated later?) This includes both options for the format of
   articles transmitted (like compression), and options for the kinds of
   information used to determine which articles to send. (More on this
   below.)

B) The protocol should use two separate TCP channels, like ftp does,
   instead of just one like standard NNTP and streaming NNTP do. This
   means that selection of articles can be proceeding asynchronously on
   the control channel even while articles are being transmitted on the
   data channel, providing better asynchronous operation than streaming
   NNTP.  And it means that the data channel can be compressed without
   confusing the operation of the control channel.

Selection of articles to transmit

The model used by NNTP assumes that the selection of articles to
transmit is performed entirely by the News server on the sending side,
with the selection criteria specified e.g. by the newsfeeds file of
INN. Thus the only information the protocol sends before sending the
article is the msg-id, so the receiving side can check whether it has
already seen that article.

It could be extremely useful for some sites, however, to have the
protocol send additional information, and have some of the article
selection take place on the receiving side.

The most useful additional information would be the Newsgroups field.
The simplest way to use this information would be to avoid
transmitting articles that would just be rejected as trash on the
receiving side. For sites that only carry selected groups in alt.*,
for instance, that can save a tremendous amount of traffic. It also
provides an easy solution to a perennial problem: allowing sites to
adjust what groups get sent to them without having to correspond with
the admin of the feeding site. The feeder could offer everything (or
everything within certain hierarchies), and let the receiver select
only those groups that are in its active file.

Sending the whole Newsgroups field also provides a solution to
something that's been discussed on the net recently, and to which
there's no solution currently. Suppose a site doesn't want to receive
anything from alt.binaries, even articles that are also posted to
misc.test, for instance. There's no easy way to set this up currently,
but the selection could be made on the receiving side if the
Newsgroups field were sent.

Other information that it might sometimes be useful to send in
addition to the msg-id are the article size, and the distribution
field. The options could be negotiated by having the sending side
list the types of information it has available, and the receiving
side specifying which of those it's interested in seeing.

-- 
Harry Bochner
bochner@das.harvard.edu

Re: Let's put compression into NNTP -- I am willing to pay
#8949
Author: Harry Bochner
Date: Tue, 02 Jul 1996 00:00
28 lines
1900 bytes
In article <4r9oq3$1o8$1@bushwire.mira.net.au>, Mark Delany <markd@mira.net.au> writes:
|> What might be better as part of a negotiated session is to send the
|> selection criteria to the sending system and let it decide before even
|> offering the message.

That's a good idea, of course.

Existing schemes generally let the receiver specify changes to their newsfeeds
entry (or equivalent). I didn't want to get into that.

But your remarks make me realize that it would be quite reasonable to specify a
"generic news article query language", as you call it, and implement it in the
transmission agent (i.e. innxmit replacement) without touching the newsfeeds
file.  That way the sender can be confident nothing should stay private will be
offered to the receiver, since the receiver can't mess with the newsfeeds file;
at the same time a substantial amount of filtering can happen on the sending
side, with no traffic required.

I like it. It requires a more complicated specification that what I was thinking
in terms of, but we'll worry about that when some one offers to fund
implementation ;-)

-- 
Harry Bochner
bochner@das.harvard.edu

Re: Let's put compression into NNTP -- I am willing to pay
#8952
Author: Mark Delany
Date: Tue, 02 Jul 1996 00:00
49 lines
2380 bytes
bochner@das.harvard.edu (Harry Bochner) writes:

>This in an idea that Ken Herron and I have talked about a bit in the past.
>Here's a proposal I wrote last fall; I think it's still pretty relevant.

>                On Beyond Streaming ...

>Getting large volumes of News through slow links faces two related
>problems:

>1) Long Round Trip Time (RTT)
>2) Limited bandwidth

[ Interesting post trimmed ]

>The most useful additional information would be the Newsgroups field.
>The simplest way to use this information would be to avoid
>transmitting articles that would just be rejected as trash on the
>receiving side. For sites that only carry selected groups in alt.*,

The general idea seems quite good, but it does strike me as not
scaling too well when the receiving end only wants a relatively small
percentage of articles (say 50% or less) as it spends a lot of time
getting headers for articles it doesn't want.

What might be better as part of a negotiated session is to send the
selection criteria to the sending system and let it decide before even
offering the message.

Maybe the selection criteria isn't exhaustive, but if it can provide
most of the selection requirements normally made, then it might be
useful.

The downside of this approach is if you send up a complicated filter
(effectively what happens on a newsfeeds line) then it might be quite
bulky and thus inefficient for extreme cases.


If we want to give Hydra even more heads, that selection criteria
definition could form the basis of a generic news article query
language (eg: SELECT ARTICLE WITH SIZE < 1M AND NEWSGROUPS UNLIKE
"alt.*" ...) which could equally well appply to feeders and readers.



Regards.

Re: Let's put compression into NNTP -- I am willing to pay
#8970
Author: Mary Conner
Date: Tue, 02 Jul 1996 00:00
35 lines
2221 bytes
In article <4r9oq3$1o8$1@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>If we want to give Hydra even more heads, that selection criteria
>definition could form the basis of a generic news article query
>language (eg: SELECT ARTICLE WITH SIZE < 1M AND NEWSGROUPS UNLIKE
>"alt.*" ...) which could equally well appply to feeders and readers.

I'm interested in hearing what other admins have to say about such
a selection "language".  I'm currently working on a way that would
allow spam cancellers to specify spams with such a selection language
(for example, specifying From: and Subject: which would nail a good
percentage of all spams), instead of the current system of one cancel
message per spam message, or the NoCeM method of listing all the
Message-ID's, which is unsuitable to small sites with large transmission
costs.

Other uses for this specification language (which would be more likely
used as a filter on incoming POSTs), would be to allow the use of
"restricted" newsgroups, wherein the posts must conform to some
specification to be posted.  I'm sure there are many that other
people could come up with.

Coming up with such a language is easy.  What isn't easy is making sure
the internal implementation of the filtering is as efficient as possible.
I do not yet know if what I currently have will scale efficiently to a
large site.  Passing every article offered through hundreds of such
filters is... daunting to say the least.


-- 
Mary Conner
trif@serv.net

Re: Let's put compression into NNTP -- I am willing to pay
#8986
Author: John T. Stapleton
Date: Wed, 03 Jul 1996 00:00
47 lines
2478 bytes
In article <4r92ei$nr2@necco.harvard.edu>,
Harry Bochner <bochner@das.harvard.edu> wrote:
>In article <4qv03v$hvi@olivea.ATC.Olivetti.Com>, jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:
:>> An alternative would be to have two channels.  One channel is the standard
:>> NNTP stream.  Note that streaming mode is perfectly capable of checking
:>> IDs for duplicates without the requirment to actually send the articles
:>> on the same channel.
>
>This in an idea that Ken Herron and I have talked about a bit in the past.
>Here's a proposal I wrote last fall; I think it's still pretty relevant.

> [deleted]

>Selection of articles to transmit

> [deleted]

>Sending the whole Newsgroups field also provides a solution to
>something that's been discussed on the net recently, and to which
>there's no solution currently. Suppose a site doesn't want to receive
>anything from alt.binaries, even articles that are also posted to
>misc.test, for instance. There's no easy way to set this up currently,
>but the selection could be made on the receiving side if the
>Newsgroups field were sent.


I posted a patch on May 22 which does that.  The code is active on the
sender's side so that the newsfeed file could contain:

	alt.*,!!alt.binaries.*

which would cause the sending system to not send an article posted in
an alt.binaries group even if it were posted in another subscribed
newsgroup.

The only complaint about the patch was from Rich Salz because I used an
existing meta-character, namely the ``!''.  Is there sufficient interest
for me to post the patch again?

And to Rich, have you come up with a different meta-character and put the
code into 1.5?  Or are you waiting for me to supply a new patch?

Stapes
stapes@mro.dec.com

Re: Let's put compression into NNTP -- I am willing to pay
#8997
Author: Evan Champion
Date: Wed, 03 Jul 1996 00:00
50 lines
3120 bytes
> >language (eg: SELECT ARTICLE WITH SIZE < 1M AND NEWSGROUPS UNLIKE
> >"alt.*" ...) which could equally well appply to feeders and readers.
>
> I'm interested in hearing what other admins have to say about such
> a selection "language".  I'm currently working on a way that would
> allow spam cancellers to specify spams with such a selection language
> (for example, specifying From: and Subject: which would nail a good
> percentage of all spams), instead of the current system of one cancel
> message per spam message, or the NoCeM method of listing all the
> Message-ID's, which is unsuitable to small sites with large transmission
> costs.

It looks like Mark is suggesting SQL as the language.

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 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.

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.

Having a the news server core be a real database server opens
news up to things like full text searching etc. _at the local
level_ and would make it easier to tie news in with other
services because there would be a common middle language.  I
suppose you could then use any SQL client you wanted to talk
to a news server.

One potentially interesting part of this would be that since
the database server would be an "off the shelf product" (all
the development would only be on the database client side),
not only would INN be smaller and simpler so that perhaps
updates could come faster, but if there was some "standard"
way to talk to database servers on UNIX, you could potentially
shove in whatever database server you wanted, so that those
who wanted to spend the money for Oracle could do so while
the rest of us use a publicly available server.

Evan

Virtues of RDBMS as news server (was: Re: Let's put compression into NNTP -- I am willing to pay)
#9009
Author: J.B. Nicholson-Owens
Date: Wed, 03 Jul 1996 00:00
61 lines
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.


Re: Let's put compression into NNTP -- I am willing to pay
#9038
Author: Mary Conner
Date: Thu, 04 Jul 1996 00:00
35 lines
2164 bytes
In article <4rf39o$dh9$1@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>>It looks like Mark is suggesting SQL as the language.

>I guess I wasn't especially. But if some new syntax were to be
>introduced, it'd be silly to invent a new one without overwhelming
>reasons. So certainly a subset of SQL might be a good framework.

I'm not a big fan of reinventing the wheel myself.  I've done a
lot of work on a database language that is a superset of SQL, and
yet I found it was still not quite totally functional.  I'm also
concerned with making things fairly easy for the average Usenet
user to use without making them become database programming wizards
first.  So something SQL-like is a possibility, but I really feel
it should be customized for Usenet searching.

Something else I should mention is that I saw here a couple of months
back that there is a rumor that tcl will be included in INN 1.5.  That
throws another wrench into the works.  Not sure how "official" this
rumor is.

>Mind you, even defining an API and getting concensus is a big ask.

If you have to wait for a concensus it will never happen.  Finding
out what other people want and need is a good thing, but it will take
someone who can say "this is it" and just code it out.  Rich Salz has
said that some of the things he implemented in INN were mistakes, but
if he had waited until every nit was picked, we wouldn't have INN today.

-- 
Mary Conner
trif@serv.net

Re: Let's put compression into NNTP -- I am willing to pay
#9040
Author: Mark Delany
Date: Thu, 04 Jul 1996 00:00
61 lines
3020 bytes
Evan Champion <evanc@synapse.net> writes:

>> >language (eg: SELECT ARTICLE WITH SIZE < 1M AND NEWSGROUPS UNLIKE
>> >"alt.*" ...) which could equally well appply to feeders and readers.

>It looks like Mark is suggesting SQL as the language.

[ other interesting comments removed ]

I guess I wasn't especially. But if some new syntax were to be
introduced, it'd be silly to invent a new one without overwhelming
reasons. So certainly a subset of SQL might be a good framework.

>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 think the effort level required to implement SQL in INN would
>be significant.

Yes, changing all of INN to use a different database from UFS is a big
job. Changing just innd though is not that huge, it's the
administrative stuff as well as NNRP that hurts.

In another thread in another time there was discussion about an API
for news servers, IMHO, such a framework is needed before anything
really serious along these lines would have a chance of occuring or
getting wide-spread support.

>One potentially interesting part of this would be that since
>the database server would be an "off the shelf product" (all
>the development would only be on the database client side),
>not only would INN be smaller and simpler so that perhaps
>updates could come faster, but if there was some "standard"
>way to talk to database servers on UNIX, you could potentially
>shove in whatever database server you wanted, so that those
>who wanted to spend the money for Oracle could do so while
>the rest of us use a publicly available server.

Yup, a news server API would be the ticket. (A news reader server
would likewise use such an API).


+--------+           +--------+
|clients |--NNTP++---|NNRP++  |---\
+--------+           +--------+    \
                                    +------+
                                    | API  |---Database (UFS, RDMS,
                                    +------+             whatever)
+--------+           +--------+   /
|feeders |--NNSP-----|INND++  |--/
+--------+           +--------+


Mind you, even defining an API and getting concensus is a big ask.


Regards.

Re: Let's put compression into NNTP -- I am willing to pay
#9042
Author: Mark Delany
Date: Fri, 05 Jul 1996 00:00
19 lines
1248 bytes
trif@serv.net (Mary Conner) writes:

>>>It looks like Mark is suggesting SQL as the language.

>I'm not a big fan of reinventing the wheel myself.  I've done a
>lot of work on a database language that is a superset of SQL, and

>first.  So something SQL-like is a possibility, but I really feel
>it should be customized for Usenet searching.

Let me hasten to add, that in the context of this thread, this syntax
would be embedded within the NNTP protocol so a user need never see it
at all, just as they never see XHDR, GROUP, etc.


Regards.

Re: Let's put compression into NNTP -- I am willing to pay
#9059
Author: Mary Conner
Date: Fri, 05 Jul 1996 00:00
25 lines
1711 bytes
In article <4rijuc$lvh$1@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>Let me hasten to add, that in the context of this thread, this syntax
>would be embedded within the NNTP protocol so a user need never see it
>at all, just as they never see XHDR, GROUP, etc.

Well, a user would not ever *need* to see it if all they wanted was
simple searching capabilities like newsreaders have now.  Once you
get beyond that, either they will be coding directly in this SQL
derivative, or each newsreader implements a new "simplified" searching
filter language that then gets turned into the SQL.  I see little 
reason to do the double work entailed in the second choice, so I
think it is quite necessary to make sure that whatever becomes the
searching language, it has to be usable by the average Usenet reader,
not to mention the average news administrator, if this is going to be
able to be used by sites to filter incoming news for such things as
spam, etc.


-- 
Mary Conner
trif@serv.net

Re: Let's put compression into NNTP -- I am willing to pay
#9083
Author: Mary Conner
Date: Sat, 06 Jul 1996 00:00
59 lines
3930 bytes
[posted and emailed---note that it is considered polite to state when
you are posting and emailing something]

In article <slrn4ts446.i3o.jbn@mystery-train.cu-online.com>,
J.B. Nicholson-Owens <jbn@mystery-train.cu-online.com> wrote:
>Just as nobody issues GROUP commands now or manually handles marking
>crossposts as read by editing their newsrc, nobody will have to deal with
>learning any language just so they can do article searches.  GUIs or
>user-friendly forms will become the UI.  People would rather use one of the
>numerous Usenet archives than learn SQL or your SQL subset, but that doesn't
>mean your work is unimportant (quite the contrary, I'm convinced it's a
>necessity for a personal project [implementing a RDBMS-based Usenet server]
>and Usenet as a whole).

The problem I have with this is the fact that we will then end up with
as many end-user implementations as there are newsreaders.  It used to
be simple to just tell someone "stick the following in your killfile"
and it would work no matter what they had for a newsreader.  Perhaps
the days of some semblance of uniformity is gone, but I can wish, can't
I?  :)

Actually, I don't care if newsreaders implement dummy forms to help
novice users build a search query (or a killfile entry).  However, I
think it would be a *big* win if in every newsreader, a user could
enter the standard language for a query, and that the storage form
of the query be in the standard language.  The fact that it eventually
has to be transmitted in the standard language is an incentive for
newsreader authors to do this, but I have no doubt that some yoyo will
decide that he/she has to change things in order to differentiate their
product and will call their way "better" in order to sell product.

>I think you should forget about the end-user implementation (leave that to
>the newsreader or end-user UI developers) and focus on subsetting SQL
>(SQL-92?) for Usenet searching.  Incidentally, does this mean you will also
>be developing a standard for tables and column namespace and organization?

I don't want to give anyone the impression that I am grinding hard
away at this.  I'm extremely busy, and the hours each week I have
available to me to work on stuff like this can be counted on my
fingers, and often on one hand.  Also, what I have been working on
has been in a somewhat different direction.  I've been working on
a filtering mechanism that would allow such things as spams to be
specified by common characteristics instead of a list of Message-ID's.
The reason why I joined this particular thread is that it would be
highly useful if the language for user queries and the filtering
language were the same.  I have not even codified the filtering
language yet, since the important part of this is to make the filtering
mechanism itself as efficient as possible because each message arriving
would be passing through each filter.  If someone else wants to work
on the final language, go for it.  Send me the drafts, and I'll make
sure it has everything I need in it for my work.

I really wish the newsgroup news.future hadn't been done away with.
-- 
Mary Conner
trif@serv.net

Re: Let's put compression into NNTP -- I am willing to pay
#9087
Author: J.B. Nicholson-Owens
Date: Sat, 06 Jul 1996 00:00
32 lines
2282 bytes
On 5 Jul 1996 14:03:45 -0700, Mary Conner <trif@serv.net> wrote:
> Well, a user would not ever *need* to see it if all they wanted was
> simple searching capabilities like newsreaders have now.

If you develop a better NNTP protocol including better searching commands,
newsreaders will adjust to include easy ways to make the power of your new
API available to the userbase.

> Once you
> get beyond that, either they will be coding directly in this SQL
> derivative, or each newsreader implements a new "simplified" searching
> filter language that then gets turned into the SQL. 

Just as nobody issues GROUP commands now or manually handles marking
crossposts as read by editing their newsrc, nobody will have to deal with
learning any language just so they can do article searches.  GUIs or
user-friendly forms will become the UI.  People would rather use one of the
numerous Usenet archives than learn SQL or your SQL subset, but that doesn't
mean your work is unimportant (quite the contrary, I'm convinced it's a
necessity for a personal project [implementing a RDBMS-based Usenet server]
and Usenet as a whole).

I think you should forget about the end-user implementation (leave that to
the newsreader or end-user UI developers) and focus on subsetting SQL
(SQL-92?) for Usenet searching.  Incidentally, does this mean you will also
be developing a standard for tables and column namespace and organization?
-- 
Due to local news server and feed problems, I might not see all followups.


Suggestions for NNTP searching API (was: Re: Let's put compression into NNTP -- I am willing to pay)
#9088
Author: J.B. Nicholson-Owens
Date: Sun, 07 Jul 1996 00:00
30 lines
2005 bytes
On 6 Jul 1996 16:19:42 -0700, Mary Conner <trif@serv.net> wrote:
> The problem I have with this is the fact that we will then end up with
> as many end-user implementations as there are newsreaders.  It used to
> be simple to just tell someone "stick the following in your killfile"
> and it would work no matter what they had for a newsreader.  Perhaps
> the days of some semblance of uniformity is gone, but I can wish, can't
> I?  :)

It would be nice, but...

> [...] but I have no doubt that some yoyo will
> decide that he/she has to change things in order to differentiate their
> product and will call their way "better" in order to sell product.

So, since we recognize that anything we create will not be the way all users
see it, I'd vote to not severely compromise the utility of the language for
the novice userbase.

> I don't want to give anyone the impression that I am grinding hard
> away at this.

Then I'll start with some suggestions, since I am working at something
related to this.  Please read a suggestion I made
<slrn4u0au3.sj4.jbn@mystery-train.cu-online.com>.
-- 
Due to local news server and feed problems, I might not see all followups.


Re: Let's put compression into NNTP -- I am willing to pay
#9120
Author: Rich Salz
Date: Mon, 08 Jul 1996 00:00
20 lines
1340 bytes
In <4rmsae$770@imp.serv.net> trif@serv.net writes:
>The problem I have with this is the fact that we will then end up with
>as many end-user implementations as there are newsreaders.  It used to
>be simple to just tell someone "stick the following in your killfile"
>and it would work no matter what they had for a newsreader.  Perhaps
>the days of some semblance of uniformity is gone, but I can wish, can't
>I?  :)

You seriously want only one newsreader?

For the entire world?

Most computer languages are pretty simple, but they let a lot of totally
different things be written.  Most people think that's a good thing.

Trust Darwin.
	/r$

Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9187
Author: Harry Bochner
Date: Wed, 10 Jul 1996 00:00
21 lines
1689 bytes
In article <slrn44u7efn.cqc.jollie@worf.netins.net>, jollie@worf.netins.net (Jeffrey C. Ollie) writes:
|> In article <4s08re$7m3@gw.home.vix.com>, James Brister wrote:
|> >Consider it official. Running a tcl function over every article is now
|> >integrated into the inn 1.5 alpha base. It's mostly Bob Halley's work.
|> 
|> Ugh. I hope that this is a compile-time option. Personally TCL makes me
|> shudder. Plus I don't think that any of my news servers have enough CPU
|> power to handle that (and I'm running DEC Alphas...).

My impression is that most news servers are IO bound rather than CPU bound.  So
if local criteria via TCL leads to discarding a few more articles, you're likely
to come out ahead.

Besides, maybe it'll be easy to substitute embedded perl for embedded TCL ;-)

-- 
Harry Bochner
bochner@das.harvard.edu

Re: Let's put compression into NNTP -- I am willing to pay
#9210
Author: James Brister
Date: Wed, 10 Jul 1996 00:00
17 lines
1283 bytes
Mary Conner (trif@serv.net) wrote:

: Something else I should mention is that I saw here a couple of months
: back that there is a rumor that tcl will be included in INN 1.5.  That
: throws another wrench into the works.  Not sure how "official" this
: rumor is.

Consider it official. Running a tcl function over every article is now
integrated into the inn 1.5 alpha base. It's mostly Bob Halley's work.

James
--
James Brister                                            brister@vix.com
Internet Software Consortium                             inn@isc.org

Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9212
Author: T. William Wells
Date: Wed, 10 Jul 1996 00:00
25 lines
1910 bytes
In article <slrn44u7efn.cqc.jollie@worf.netins.net>,
Jeffrey C. Ollie <jollie@worf.netins.net> wrote:
: In article <4s08re$7m3@gw.home.vix.com>, James Brister wrote:
: >Consider it official. Running a tcl function over every article is now
: >integrated into the inn 1.5 alpha base. It's mostly Bob Halley's work.
:
: Ugh. I hope that this is a compile-time option. Personally TCL makes me
: shudder. Plus I don't think that any of my news servers have enough CPU
: power to handle that (and I'm running DEC Alphas...).

I'm going to have to second that. I kinda like tcl and have done
some pretty outrageous projects with it (like an LR(1) parser and
generator) but it is *slow*. Once upon a time, I considered using
it as a general purpose scripting language but 1) it's much too
pointlessly verbose; 2) much too slow; 3) and is missing all
sorts of random stuff I find useful (like unlinking a file!).

I had some scripts I'd written for router configuration
management, done in tcl; I switched to perl and they were *four
times* faster.  I don't like a lot of things about perl but,
assuming it actually has reasonable embeddability, it is almost
certainly a better choice than tcl.

Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9218
Author: Jeffrey C. Ollie
Date: Wed, 10 Jul 1996 00:00
31 lines
2198 bytes
In article <4s0r61$d7h@necco.harvard.edu>, Harry Bochner wrote:
>In article <slrn44u7efn.cqc.jollie@worf.netins.net>, jollie@worf.netins.net (Jef
> frey C. Ollie) writes:
>|> In article <4s08re$7m3@gw.home.vix.com>, James Brister wrote:
>|> >Consider it official. Running a tcl function over every article is now
>|> >integrated into the inn 1.5 alpha base. It's mostly Bob Halley's work.
>|> 
>|> Ugh. I hope that this is a compile-time option. Personally TCL makes me
>|> shudder. Plus I don't think that any of my news servers have enough CPU
>|> power to handle that (and I'm running DEC Alphas...).
>
>My impression is that most news servers are IO bound rather than CPU bound.  So
>if local criteria via TCL leads to discarding a few more articles, you're likely
>to come out ahead.

Yes, most news servers are I/O bound right now. That's certainly the case with
both of my news servers right now. But if I have to run a TCL (or even PERL)
function over every article I think that would quickly change. My servers
process around 150K articles per day - I don't think that they could keep up.

If someone has empirical evidence that points to the contrary, I'd love to
hear it...

>Besides, maybe it'll be easy to substitute embedded perl for embedded TCL ;-)

I don't think that even that will help.



TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9220
Author: Jeffrey C. Ollie
Date: Wed, 10 Jul 1996 00:00
19 lines
1480 bytes
In article <4s08re$7m3@gw.home.vix.com>, James Brister wrote:
>Mary Conner (trif@serv.net) wrote:
>
>: Something else I should mention is that I saw here a couple of months
>: back that there is a rumor that tcl will be included in INN 1.5.  That
>: throws another wrench into the works.  Not sure how "official" this
>: rumor is.
>
>Consider it official. Running a tcl function over every article is now
>integrated into the inn 1.5 alpha base. It's mostly Bob Halley's work.

Ugh. I hope that this is a compile-time option. Personally TCL makes me
shudder. Plus I don't think that any of my news servers have enough CPU
power to handle that (and I'm running DEC Alphas...).



Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9248
Author: James Brister
Date: Thu, 11 Jul 1996 00:00
17 lines
1362 bytes
: I had some scripts I'd written for router configuration
: management, done in tcl; I switched to perl and they were *four
: times* faster.  I don't like a lot of things about perl but,
: assuming it actually has reasonable embeddability, it is almost
: certainly a better choice than tcl.

Personally I would much perfer Perl than TCL, but the work's been done and
it's pretty clean. After 1.5 becomes available, you (or anyone else) is more
than welcome to give me a perl version to add in.

James
--
James Brister                                            brister@vix.com
Internet Software Consortium

Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9257
Author: Jeffrey C. Ollie
Date: Fri, 12 Jul 1996 00:00
24 lines
1865 bytes
In article <4s3q0q$5q5@gw.home.vix.com>, James Brister wrote:
>: I had some scripts I'd written for router configuration
>: management, done in tcl; I switched to perl and they were *four
>: times* faster.  I don't like a lot of things about perl but,
>: assuming it actually has reasonable embeddability, it is almost
>: certainly a better choice than tcl.
>
>Personally I would much perfer Perl than TCL, but the work's been done and
>it's pretty clean. After 1.5 becomes available, you (or anyone else) is more
>than welcome to give me a perl version to add in.

Will there be a compile-time option to leave anything like this out?
I'm sure that this feature will be a great boon to some people but I'm
pretty sure that I won't want it at all.

Also, just out of curiosity, can you give us a more complete
description of how this works? Does the TCL function have to be
applied to every article?  What effects can the TCL code have on the
operation of the server - cause the article to be dropped, perhaps
cause a cancel message to be sent out?


Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9258
Author: James Brister
Date: Fri, 12 Jul 1996 00:00
22 lines
1608 bytes
Jeffrey C. Ollie (jollie@worf.netins.net) wrote:

: Will there be a compile-time option to leave anything like this out?
: I'm sure that this feature will be a great boon to some people but I'm
: pretty sure that I won't want it at all.

Ummm. Do you really expect me to require people to use tcl if they
don't have it and/or don't want it??? I didn't think so.

Basically a tcl function is defined which is called on every article.
Articles get dropped or accepted depending on the return value of the
function. It has access to all headers and the body. Filtering can be
turned on and off with ctlinnd and the function's source file
can be modified and reloaded.

James
--
James Brister                                            brister@vix.com
Internet Software Consortium

Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9264
Author: John Milburn
Date: Fri, 12 Jul 1996 00:00
43 lines
2723 bytes
jollie@worf.netins.net (Jeffrey C. Ollie) writes:

>>My impression is that most news servers are IO bound rather than CPU bound.  So
>>if local criteria via TCL leads to discarding a few more articles, you're likely
>>to come out ahead.

>Yes, most news servers are I/O bound right now. That's certainly the case with
>both of my news servers right now. But if I have to run a TCL (or even PERL)
>function over every article I think that would quickly change. My servers
>process around 150K articles per day - I don't think that they could keep up.

>If someone has empirical evidence that points to the contrary, I'd love to
>hear it...

I do have some experience in using a perl script, run as an exploder
feed from innd, to process every article.  The script contains about
350 rules, some (about 60%) which check only the headers of an
article, others which check the full body.

The program is rather well optimized (as well as one can do with
perl), and scans only a few hundred lines of binary posts.  Since it
runs as an exploder, in the normal state, all article reads come from
cache.  It really bogs down if it gets behind, and has to go to disk.
So, I added a cron job to flush the channel once per hour, which lets
the old process (any backlog) run until completion, while allowing
newly arriving articles to be processed from cache.  Clearly, this is
not an issue with an embedded processor.

I have run this, with various rule changes, on an HP720 (50 MHz
PA7000), HP712 (80 MHz PA7100), HP735 (125 MHz PA 7150), and Linux
(P150).  Only the later two machines are able to keep up with recent
news flows (avg 170,000 article/day here).  Do not run a program like
this on a reader machine.  It eats up so much cpu time that the users
will absolutely notice it.

-jem

>>Besides, maybe it'll be easy to substitute embedded perl for embedded TCL ;-)

>I don't think that even that will help.

Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
#9282
Author: Erland Sommarskog
Date: Sat, 13 Jul 1996 00:00
24 lines
1784 bytes
John Milburn (jem@xpat.com) writes:
>I do have some experience in using a perl script, run as an exploder
>feed from innd, to process every article.  The script contains about
>350 rules, some (about 60%) which check only the headers of an
>article, others which check the full body.

To add some more input on this, I run a Perl script once an hour
which reads all articles that have arrived since last time the
script was run. It doesn't read all of the articles, but stops as
soon as it has found the Path line. (What the script does is that
it collects data about article's travel time, and it provides in-
formation per feed.) The machine is Sparc 20 with lots of memory and
a huge RAID-5. (The news spool is some 23 GB.)

Anyway, from my log I can tell that it takes the script about ten minutes 
to complete busy hours with 15.000 articles. (Our normal pace is around
7.000 articles per hour.)

-- 
Erland Sommarskog, Stockholm, sommar@algonet.se
De klant heeft altijd recht - Nederl�ndskt ordspr�k.

SQL and INN
#9299
Author: Erland Sommarskog
Date: Sun, 14 Jul 1996 00:00
71 lines
4070 bytes

Evan Champion <evanc@synapse.net> writes:
>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.

Ah, my favourite project! Implementing a news server using an RDBMS.
If I didn't have all those other things to do, including work, this
would be a project that I would gladly waste my time on.

>Having a the news server core be a real database server opens
>news up to things like full text searching etc. _at the local
>level_ and would make it easier to tie news in with other
>services because there would be a common middle language.  I
>suppose you could then use any SQL client you wanted to talk
>to a news server.

This has been covered by other people already. I think only a
handful of people would use SQL directly to talk to the database;
those who know SQL and who know the data model. For them however,
it would be a very powerful tool.

Most casual users would want to use some query capability built
into their newsreader - or a query tool that knows all about the
data model of the news system.

>One potentially interesting part of this would be that since
>the database server would be an "off the shelf product" (all
>the development would only be on the database client side),
>not only would INN be smaller and simpler so that perhaps
>updates could come faster, but if there was some "standard"
>way to talk to database servers on UNIX, you could potentially
>shove in whatever database server you wanted, so that those
>who wanted to spend the money for Oracle could do so while
>the rest of us use a publicly available server.

My experience of RDBMS is that you can be portable, but it is not
at all easy. Least of all if performance is an issue. Evan suggests
that all could be done on the SQL client side, but unfortunate there
is a penalty for that. My experience of RDBMS is mainly with Sybase
and Mircosoft SQL Server. Both offer stored procedures - as all
major commercial DBMS do these days, I believe - and trust me, you
will need them. To wit, you are going to make a lot of insertions
into the database, and it is on these short insert operations that
the stored procedures saves you a lot of time.

When it comes to complex running queries, as expire would be, it
matters little if the query originates from the client or exists
in a stored procedure. What matters though, is where transient
data is stored. Now, I don't know how an RDBMS expire would look
like, but I often find when writing other RDBMS stuff - that's the
way I earn my daily bread - that I need to make some primary selection
of data, and then proceed to work with that. This data needs to
be stashed away somewhere. Yes, you can put the controlling algo-
rithm in the client and send all that data forth back between
client and server, but you are not get blazing speed for that.
Instead you would be better off using temporary tables, which is
a feature available in Sybase and MS SQL Server, but, again maybe
not in all RDBMSs.

In short, I don't think that it's realistic to build an INN server
into which you could plug any RBDMS, if you want good performance.


[Posted and mailed]
-- 
Erland Sommarskog, Stockholm, sommar@algonet.se
De klant heeft altijd recht - Nederl�ndskt ordspr�k.

Re: SQL and INN
#9315
Author: Jeffrey C. Ollie
Date: Mon, 15 Jul 1996 00:00
61 lines
3408 bytes
In article <4s96sp$40m@kairos.algonet.se>, Erland Sommarskog wrote:
>
>Evan Champion <evanc@synapse.net> writes:
>>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.
>
>Ah, my favourite project! Implementing a news server using an RDBMS.
>If I didn't have all those other things to do, including work, this
>would be a project that I would gladly waste my time on.

Yes, it's one of my favorite "thought experiments". I wish that I had
the time/money to work on something like this.

>>Having a the news server core be a real database server opens
>>news up to things like full text searching etc. _at the local
>>level_ and would make it easier to tie news in with other
>>services because there would be a common middle language.  I
>>suppose you could then use any SQL client you wanted to talk
>>to a news server.
>
>This has been covered by other people already. I think only a
>handful of people would use SQL directly to talk to the database;
>those who know SQL and who know the data model. For them however,
>it would be a very powerful tool.
>
>Most casual users would want to use some query capability built
>into their newsreader - or a query tool that knows all about the
>data model of the news system.

My thought was that external clients (news readers and feeders) would
be presented with an NNTP interface. Actual access to the direct SQL
interface would be limited to server software.

>>One potentially interesting part of this would be that since
>>the database server would be an "off the shelf product" (all
>>the development would only be on the database client side),
>>not only would INN be smaller and simpler so that perhaps
>>updates could come faster, but if there was some "standard"
>>way to talk to database servers on UNIX, you could potentially
>>shove in whatever database server you wanted, so that those
>>who wanted to spend the money for Oracle could do so while
>>the rest of us use a publicly available server.
>
>My experience of RDBMS is that you can be portable, but it is not
>at all easy. Least of all if performance is an issue.
>
> [...]
>
>In short, I don't think that it's realistic to build an INN server
>into which you could plug any RBDMS, if you want good performance.

Yes, you'd probably have to have different software for each different
flavor of SQL server. I don't think that that's really a problem. If
you can get more performance than you can with current implementations
there are probably more than a few sites that would invest in the
appropriate RDBMS.


Re: SQL and INN
#9422
Author: neal
Date: Thu, 18 Jul 1996 00:00
77 lines
4341 bytes
In article <4s96sp$40m@kairos.algonet.se>,
Erland Sommarskog <sommar@kairos.algonet.se> wrote:
>
>Evan Champion <evanc@synapse.net> writes:
>>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.
>
>Ah, my favourite project! Implementing a news server using an RDBMS.
>If I didn't have all those other things to do, including work, this
>would be a project that I would gladly waste my time on.
>
>>Having a the news server core be a real database server opens
>>news up to things like full text searching etc. _at the local
>>level_ and would make it easier to tie news in with other
>>services because there would be a common middle language.  I
>>suppose you could then use any SQL client you wanted to talk
>>to a news server.
>
>This has been covered by other people already. I think only a
>handful of people would use SQL directly to talk to the database;
>those who know SQL and who know the data model. For them however,
>it would be a very powerful tool.
>
>Most casual users would want to use some query capability built
>into their newsreader - or a query tool that knows all about the
>data model of the news system.
>
>>One potentially interesting part of this would be that since
>>the database server would be an "off the shelf product" (all
>>the development would only be on the database client side),
>>not only would INN be smaller and simpler so that perhaps
>>updates could come faster, but if there was some "standard"
>>way to talk to database servers on UNIX, you could potentially
>>shove in whatever database server you wanted, so that those
>>who wanted to spend the money for Oracle could do so while
>>the rest of us use a publicly available server.
>
>My experience of RDBMS is that you can be portable, but it is not
>at all easy. Least of all if performance is an issue. Evan suggests
>that all could be done on the SQL client side, but unfortunate there
>is a penalty for that. My experience of RDBMS is mainly with Sybase
>and Mircosoft SQL Server. Both offer stored procedures - as all
>major commercial DBMS do these days, I believe - and trust me, you
>will need them. To wit, you are going to make a lot of insertions
>into the database, and it is on these short insert operations that
>the stored procedures saves you a lot of time.
>
>When it comes to complex running queries, as expire would be, it
>matters little if the query originates from the client or exists
>in a stored procedure. What matters though, is where transient
>data is stored. Now, I don't know how an RDBMS expire would look
>like, but I often find when writing other RDBMS stuff - that's the
>way I earn my daily bread - that I need to make some primary selection
>of data, and then proceed to work with that. This data needs to
>be stashed away somewhere. Yes, you can put the controlling algo-
>rithm in the client and send all that data forth back between
>client and server, but you are not get blazing speed for that.
>Instead you would be better off using temporary tables, which is
>a feature available in Sybase and MS SQL Server, but, again maybe
>not in all RDBMSs.
>
>In short, I don't think that it's realistic to build an INN server
>into which you could plug any RBDMS, if you want good performance.
>
>
>[Posted and mailed]
>-- 
>Erland Sommarskog, Stockholm, sommar@algonet.se
>De klant heeft altijd recht - Nederl�ndskt ordspr�k.

I'd love to see a version which at least stored the article headers
in an RDBMS, preferably an Informix Online DSA 7.xx database.
The bodies of the articles can stay in flat files.   

Re: SQL and INN
#9674
Author: Erland Sommarskog
Date: Sat, 27 Jul 1996 00:00
51 lines
3065 bytes
jollie@worf.netins.net (Jeffrey C. Ollie) wrote:
>In article <4s96sp$40m@kairos.algonet.se>, Erland Sommarskog wrote:
>>Most casual users would want to use some query capability built
>>into their newsreader - or a query tool that knows all about the
>>data model of the news system.
>
>My thought was that external clients (news readers and feeders) would
>be presented with an NNTP interface. Actual access to the direct SQL
>interface would be limited to server software.

Well, certainly the old protocol must be preserved for compatibility.
And I can see no reasons why feeds should talk anything but NNTP 
with each other. Certainly you don't want an external host writing
data directly in to your database! And the same applies when people'
post.

However, I can well envision news readers taking direct advantage of
the database interface in order to provide advanced search 
capabilities. Then again, that presumes that the data model is 
stable, or at least that there is a documented interface of stored 
procedures. (But given the dynamic nature of these queries, a stored
procedure interface would reduce functionality quite a lot.)

And I don't mind letting experienced SQL users accessing the database
directly through an interactive SQL tool.

>Yes, you'd probably have to have different software for each different
>flavor of SQL server. I don't think that that's really a problem. If
>you can get more performance than you can with current implementations
>there are probably more than a few sites that would invest in the
>appropriate RDBMS.

Yes, provided we really get better performance. To be honest I have no
idea where we would land performancewise. After all a database server
includes a lot of functionality that we don't need. What we would gain
is that we could dig out all sorts of statistics with an impressive
speed, for instance: how many articles from Joe User do I have on the
system right now? But what would happen to the throughput of the
constant chewing with storing article, I don't know. But it might as
it was suggested in an other articles, that one should not store the
bodies in the database, only the header information.


--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.


Re: SQL and INN
#9697
Author: Jeffrey C. Ollie
Date: Sun, 28 Jul 1996 00:00
101 lines
5501 bytes
-----BEGIN PGP SIGNED MESSAGE-----

On Sat, 27 Jul 1996 22:24:11 GMT, Erland Sommarskog <sommar@algonet.se> wrote:
>jollie@worf.netins.net (Jeffrey C. Ollie) wrote:
>>In article <4s96sp$40m@kairos.algonet.se>, Erland Sommarskog wrote:
>>>Most casual users would want to use some query capability built
>>>into their newsreader - or a query tool that knows all about the
>>>data model of the news system.
>>
>>My thought was that external clients (news readers and feeders) would
>>be presented with an NNTP interface. Actual access to the direct SQL
>>interface would be limited to server software.
>
>Well, certainly the old protocol must be preserved for compatibility.
>And I can see no reasons why feeds should talk anything but NNTP 
>with each other. Certainly you don't want an external host writing
>data directly in to your database! And the same applies when people'
>post.
>
>However, I can well envision news readers taking direct advantage of
>the database interface in order to provide advanced search 
>capabilities. Then again, that presumes that the data model is 
>stable, or at least that there is a documented interface of stored 
>procedures. (But given the dynamic nature of these queries, a stored
>procedure interface would reduce functionality quite a lot.)

I doubt that news readers that access the database directly rather
than through a NNTP front-end will see much use. I don't believe that
different vendor's implementations (or even different versions from
the same vendor) are compatible enough that it wouldn't take rewriting
a lot of code when you switch RDBMSs.

It could be construed as a good thing that news readers would only
have access to a NNTP front end. For one thing, you douldn't need a
different news reader for each server. Server authors would also be
free to change the internal structure of the database if
needed. That's what standardized protocols are for.

>And I don't mind letting experienced SQL users accessing the database
>directly through an interactive SQL tool.

On the other hand, allowing direct access to the database makes
*absolutely no difference* as long as a NNTP front end is provided for
feeds and readers.

>>Yes, you'd probably have to have different software for each different
>>flavor of SQL server. I don't think that that's really a problem. If
>>you can get more performance than you can with current implementations
>>there are probably more than a few sites that would invest in the
>>appropriate RDBMS.
>
>Yes, provided we really get better performance. To be honest I have no
>idea where we would land performancewise. After all a database server
>includes a lot of functionality that we don't need. What we would gain
>is that we could dig out all sorts of statistics with an impressive
>speed, for instance: how many articles from Joe User do I have on the
>system right now? But what would happen to the throughput of the
>constant chewing with storing article, I don't know. But it might as
>it was suggested in an other articles, that one should not store the
>bodies in the database, only the header information.

Storing article bodies outside of the database would somewhat limit
the usefulness of pure SQL tools - they would not be able to search
article bodies.

I think that until there is more experience implementing a news server
with a RDBMS there is little to say about performance. I _believe_
that a well-implemented RDBMS-based news server would perform better
than a filesystem-based news server but I have no proof. Unfortunately
I am not in a position to investigate further because I do not have
access to the appropriate tools.

If someone wants to give me an AlphaServer 1000 running Digital UNIX
and a copy of Oracle v7 I'd be happy to start working on it though.


[A copy of the headers are included here so that they can be signed.]
Date: Sun, 28 Jul 1996 23:14:42 -0500
Followup-To: 
Newsgroups: news.software.nntp
Organization: INS Info Services, Des Moines, IA, USA
References: <4qs8mb$abu@fugue.clari.net> <4r9oq3$1o8$1@bushwire.mira.net.au> <4rcvg3$1mo@imp.serv.net> <31DA615C.7C66@synapse.net> <4s96sp$40m@kairos.algonet.se> <slrn44ukltk.ohl.jollie@worf.netins.net> <4te52n$2vj@fizban.solace.mh.se>
Subject: Re: SQL and INN

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by AnySign 1.1

iQCVAwUBMfw6t5wkOQz8sbZFAQHQsAP/eKOzTTASPhxRbBDjr6uvcwTk1ROJkJS4
t1PbFs/+Tw7DZsfi/lkEfKIlHVdYVyhnQbrm+gDnROHHUg4Pd4mTSRGFZmf42ar6
wA5iTCi4hTMRn2ZA5kGG49Unvyc653nIFj60b/e4wt4EX2r7wuzl9iQW5/b/YuoI
OTfOm20WzOE=
=JNgj
-----END PGP SIGNATURE-----
-- 
Jeffrey C. Ollie
Iowa Network Services System Administrator


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads