Article View: rocksolid.nodes
Article #362sql in rslight
From: Retro Guy
Date: Sat, 12 Dec 2020 01:54
Date: Sat, 12 Dec 2020 01:54
28 lines
2168 bytes
2168 bytes
I've avoided using any database in Rocksolid Light to this point, but finally have decided to do so. I'm using sqlite, so no dealing with the database as an admin is necessary, rslight handles the whole thing. This comes about as there is one major issue in newsportal that is a memory hog. It is the one thing I've been fighting with for quite a while, and have decided a db is what is required to handle this. newsportal loads the headers of an entire group into ram to thread the messages, then repeatedly iterates through the array. In large groups (50,000+), it exhausts default memory allowed in default php settings. Plus, it's slow. To get comfortable with sqlite, I've started with the search function. Now on rslight.i2p (only this install), search is handled with a sqlite database and it's working fine. I now plan to do the same with overboard (which is almost done). I want to work with my own code before jumping into a major change in newsportal code. Anyway, rslight will use sqlite in future releases. The upgrade process will automatically create the databases from existing flat files (I already have these functions written), then go from there. It should be pretty seamless for an admin (if there are any other than myself, lol). So I guess I have to remove 'Database not required' from the README :) Retro Guy
Technical Details
Message-ID:
<20201211185438.0facd5ad@desktop14.dt>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-mailShow Full Headers
Complete Article Headers
Message-ID: <20201211185438.0facd5ad@desktop14.dt> Subject: sql in rslight Date: Fri, 11 Dec 2020 18:54:38 -0700 From: Retro Guy <retro_guy@retrobbs.rocksolidbbs.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: RetroBBS Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: novabbs.org; posting-account="retrobbs1"; posting-host="localhost:127.0.0.1"; logging-data="17699"; mail-complaints-to="usenet@novabbs.org" X-Newsreader: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)