Thread View: news.software.nntp
10 messages
10 total messages
Started by Helm
Wed, 01 Apr 2020 00:47
A comment on SQLNetnews
Author: Helm
Date: Wed, 01 Apr 2020 00:47
Date: Wed, 01 Apr 2020 00:47
24 lines
1929 bytes
1929 bytes
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. Also divide your code up into multiple files for readability. Nothing wrong with that. I like how you binded SQLite arguments, protects from any injection attacks... More work on validation of articles needs to be done. I read in an old post that SQL could not be used for news servers. This is simply not the case. Newsoo (French usenet service) used a MariaDB overview database (with InnoDB and indexes of course) and it was significantly better than anything on the market today... only if he released his source code.. I like your software and will be taking some of your brilliant ideas into my news server software. I think storing the articles in a sqllite database is a bad idea. You should support XOVER (as it is the same as OVER). Good job though. Let me know what I can do to help.
OVER and XOVER
Author: serious Sam
Date: Thu, 02 Apr 2020 16:45
Date: Thu, 02 Apr 2020 16:45
4 lines
879 bytes
879 bytes
well, you can just modify the sourcecode on FOSSIL such that both OVER and XOVER are implemented. it is only 1 file !
Re: A comment on SQLNetnews
Author: news
Date: Thu, 02 Apr 2020 17:59
Date: Thu, 02 Apr 2020 17:59
49 lines
2689 bytes
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?)
Re: A comment on SQLNetnews
Author: Helm
Date: Thu, 02 Apr 2020 18:44
Date: Thu, 02 Apr 2020 18:44
51 lines
3553 bytes
3553 bytes
On 4/2/2020 1:59 PM, news@zzo38computer.org.invalid wrote: > 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.) > One on NG name and article number (combined index). That why overviews along with MID requests are fast. Timestamps are not really necessary since you don't need to call up a article by timestamp unless you do newnews (which a news admin dosen't need to support) >> 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. Good glad to see someone who agrees. > >> 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 > From the website: "The performance difference arises (we believe) because when working from an SQLite database, the open() and close() system calls are invoked only once, whereas open() and close() are invoked once for each blob when using blobs stored in individual files. It appears that the overhead of calling open() and close() is greater than the overhead of using the database. The size reduction arises from the fact that individual files are padded out to the next multiple of the filesystem block size, whereas the blobs are packed more tightly into an SQLite database." If you have a buffer filesytem (like CNFS) it will be even faster. Yes, it may be fast even on SQLITE, but the database will start to bottleneck if you are requesting megabytes and megabytes of information per second (article + headers) when you can simply seperate the articles and place less of a load on the sqlite subsystem. Besides, you can't grep a spool. If you do decide to use Sqlite to store articles, I think you should have different files (1 per hierachy?) so the load is distributed. I like your software alot. Nice to see some new fish in the Usenet software industry.
Re: A comment on SQLNetnews
Author: Helm
Date: Thu, 02 Apr 2020 18:48
Date: Thu, 02 Apr 2020 18:48
2 lines
1062 bytes
1062 bytes
And when i'm done with my usenet software maybe we can do some experimental peering! LOL
put.hk/reader/zzo38computer.org/un2.org.zzo38computer.admin.html
Author: serious Sam
Date: Fri, 03 Apr 2020 09:24
Date: Fri, 03 Apr 2020 09:24
15 lines
1007 bytes
1007 bytes
http://put.hk/reader/zzo38computer.org/un2.org.zzo38computer.admin.html I get FAIL when I try to post. Would be cool if it worked...
SQLNetnews peering
Author: serious Sam
Date: Fri, 03 Apr 2020 09:25
Date: Fri, 03 Apr 2020 09:25
5 lines
1023 bytes
1023 bytes
On 02.04.20 20:48, Helm wrote: > And when i'm done with my usenet software maybe we can do some > experimental peering! LOL doing a little SQL script for that cannot be that hard...
Re: put.hk/reader/zzo38computer.org/un2.org.zzo38computer.admin.html
Author: news
Date: Fri, 03 Apr 2020 19:25
Date: Fri, 03 Apr 2020 19:25
30 lines
2083 bytes
2083 bytes
serious Sam <s@m.se> wrote: > http://put.hk/reader/zzo38computer.org/un2.org.zzo38computer.admin.html > > I get FAIL when I try to post. > > Would be cool if it worked... Posting works for me, although the list of articles didn't display. I found the problem; it uses XOVER instead of OVER. I fixed my server so that now XOVER is implemented as well as OVER, and now the listing works. I don't know why you got FAIL when you tried to post though (possibly my server was temporarily down for a few seconds or minutes?) I notice that an error message is displayed if the name is not filled in. As far as I know, neither my server nor most other NNTP servers require the name, as long as the email address is filled in (although it need not be a valid email address; if it isn't valid, add ".invalid" at the end in order to denote that it is invalid). If you have any other problems with put.hk, you may consider writing to the author of that program. When possible, I recommend using a NNTP client on your own computer, rather than using a remote service such as put.hk, although the option remains available for those who prefer it. -- This signature intentionally left blank. (But if it has these words, then actually it isn't blank, isn't it?)
Re: A comment on SQLNetnews
Author: Grant Taylor
Date: Sat, 04 Apr 2020 04:20
Date: Sat, 04 Apr 2020 04:20
11 lines
1321 bytes
1321 bytes
On 4/2/20 12:48 PM, Helm wrote: > And when i'm done with my usenet software maybe we can do some > experimental peering! LOL When you are ready to peer, send me an email. -- Grant. . . . unix || die
put.hk/reader/zzo38computer.org works!
Author: serious Sam
Date: Sat, 04 Apr 2020 07:43
Date: Sat, 04 Apr 2020 07:43
31 lines
1701 bytes
1701 bytes
On 03.04.20 21:25, news@zzo38computer.org.invalid wrote: > serious Sam <s@m.se> wrote: >> http://put.hk/reader/zzo38computer.org/un2.org.zzo38computer.admin.html >> >> I get FAIL when I try to post. > > Posting works for me, although the list of articles didn't display. I now it works! great fix of yours. except the menu disappears in empty newsgroups so one cannot post in empty ng. > When possible, I recommend using a NNTP client on your own computer, > rather than using a remote service such as put.hk, although the option > remains available for those who prefer it. but think of the great simplicity of just 1 click = ready to go versus a tedious process of finding, downloading, installing / building, running / launching many will prefer the 1 click method.
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