🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #363

Re: sqllite, huh ?

#363
From: Retro Guy
Date: Wed, 16 Dec 2020 09:21
18 lines
2414 bytes
Anonymous wrote:

>>>d279998bf9073666e2
>>rslight just creates the .db3 files as necessary, creates >the tables, everything is just done for you. There is no >extra work.

> that sounds just lovely. Correct database setup is one more unpleasant parts, although I have to say it was very easy with vichan (not so much with fudforum). But if it is all handled inside your code, that should reduce this problem to zero.

sqlite is great for the purpose I'm using it. If you were storing critical or sensitive info, use another method that is protected as this is not, and it's not meant to be. The data I'm handling is not private, it's simply header data for messages, etc. It makes searching header data across messages very fast and easy. 

Creating a db is as simple as creating a file (a db is in a file). If someone installed rslight and set it up, the only real thing you'd notice that shows it uses a db is that the instructions tell you phpX.x-sqlite3 is required. You don't need to take any action beyond installing that package.

I'm still learning so I may not be doing everything as best it can be done, but it's kinda fun and it's working great. Once I feel a bit more comfortable with it, I'll move on to some newsportal mods and work to reduce memory usage for big groups.

Retro Guy

-- 
Posted on Rocksolid Light
rslight.i2p
Technical Details
Message-ID: <53b1591460be38a137f320dc1c265eff$1@rslight.i2p>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!rocksolid2!.POSTED.localhost!not-for-mail
References: <20201211185438.0facd5ad@desktop14.dt> <n.1268.460pfw@anon.com>

Show Full Headers
Complete Article Headers
Message-ID: <53b1591460be38a137f320dc1c265eff$1@rslight.i2p>
Subject: Re: sqllite, huh ?
Date: Wed, 16 Dec 2020 09:21:04 +0000
From: retro.guy@rocksolidbbs.com (Retro Guy)
References: <20201211185438.0facd5ad@desktop14.dt> <n.1268.460pfw@anon.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!rocksolid2!.POSTED.localhost!not-for-mail
Newsgroups: rocksolid.nodes
Organization: Rocksolid Light
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: novabbs.org; posting-account="retrobbs1"; posting-host="localhost:127.0.0.1";
 logging-data="11413"; mail-complaints-to="usenet@novabbs.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$kG5AxKbtr7Y0rTck/DRUkeH8jl/vjHW.gcY2SnAJIq2qbW6WAL.mK