🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88313

Re: A comment on SQLNetnews

#88313
From: news
Date: Thu, 02 Apr 2020 17:59
49 lines
2689 bytes
Helm <please@nospam.invalid> wrote:
> I like it. However, indexes MUST be recommended. Without Indexes, any 
> database with more than a couple hundred rows will start to slow down 
> significantly.

Which indexes do you recommend? Note that every UNIQUE constraint and
PRIMARY KEY constraint is also an index, so there is already an index on
message IDs. (Although, perhaps an index on timestamps might be wanted.)

> Also divide your code up into multiple files for readability. Nothing 
> wrong with that.

The program is small enough that I think I do not need many files, but if
I add additional programs (which are not part of the NNTP server, e.g. a
program which pushes to other servers and/or pulls from other servers, or
synchronizes with other databases (e.g. for web forum software), or which
manages email subscriptions, etc) then they would be separate files.

> I like how you binded SQLite arguments, protects from any injection 
> attacks...

Yes, this is how it should be done when possible. Not only it protects
from injection attacks, but it is also more efficient.

> I like your software and will be taking some of your brilliant ideas 
> into my news server software.

That is OK if you like to do that.

> I think storing the articles in a sqllite database is a bad idea.

Can you explain how? I think if the table is not WITHOUT ROWID, and the
page size is set appropriately, it is OK. Although if you do not want to
do that in your software, you don't have to.

See also: https://sqlite.org/fasterthanfs.html

> You should support XOVER (as it is the same as OVER). Good job though. 

OK, I will add that to the next version. I added a ticket now.

> Let me know what I can do to help.

You could help with the work on validation and on indexes, I suppose. You
could also help with documentation if wanted.

-- 
This signature intentionally left blank.
(But if it has these words, then actually it isn't blank, isn't it?)
Technical Details
Message-ID: <1585764062.bystand@zzo38computer.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <r60obr$2p5f$1@esteban.tulanet.com>

Show Full Headers
Complete Article Headers
Message-ID: <1585764062.bystand@zzo38computer.org>
Subject: Re: A comment on SQLNetnews
Date: Thu, 02 Apr 2020 10:59:30 -0700
From: news@zzo38computer.org.invalid
References: <r60obr$2p5f$1@esteban.tulanet.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Aioe.org NNTP Server
Lines: 49
Nntp-Posting-Host: iSqskUzK2KPWtZfZ6bkvfw.user.gioia.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse@aioe.org
User-Agent: bystand/1.1.1
X-Notice: Filtered by postfilter v. 0.9.2