Supercharge the One Person Framework with SQLite
fractaledmind.github.io
Supercharge the One Person Framework with SQLite
1–10 of 12 posts
Re: Supercharge the One Person Framework with SQLite
#2Re: Supercharge the One Person Framework with SQLite
#3I only scrolled through this, and didn’t see an answer, but in this case more than one process can’t access the DB right? And presumably you’ve lost the ability to connect to the DB and poke around in the data?
> So, yes, it is actually possible to run full-featured Rails applications in production, with no compromises on features or performance, all on a single machine.
In other words, "stop worrying and just deploy a single application instance".
Re: Supercharge the One Person Framework with SQLite
#4I only scrolled through this, and didn’t see an answer, but in this case more than one process can’t access the DB right? And presumably you’ve lost the ability to connect to the DB and poke around in the data?
You can connect to an in-use SQLite database using other tools (like the sqlite3 CLI tool or my https://datasette.io local web app) just fine.
The only thing to avoid is long running write operations, since those will block writes from other processes for their duration.
Enabling WAL mode avoids errors if you try to read while some other process is performing a write.
You can test this yourself: fire up a few terminal terminal windows and run sqlite3 multiple times against the same file on disk and see what happens.
Re: Supercharge the One Person Framework with SQLite
#5I only scrolled through this, and didn’t see an answer, but in this case more than one process can’t access the DB right? And presumably you’ve lost the ability to connect to the DB and poke around in the data?
Re: Supercharge the One Person Framework with SQLite
#6Re: Supercharge the One Person Framework with SQLite
#7Re: Supercharge the One Person Framework with SQLite
#8I only scrolled through this, and didn’t see an answer, but in this case more than one process can’t access the DB right? And presumably you’ve lost the ability to connect to the DB and poke around in the data?
Apparently, this is also no longer necessary with the new replication tool, but haven't tried that.
Re: Supercharge the One Person Framework with SQLite
#9I only scrolled through this, and didn’t see an answer, but in this case more than one process can’t access the DB right? And presumably you’ve lost the ability to connect to the DB and poke around in the data?
Re: Supercharge the One Person Framework with SQLite
#10Happy to talk anything about Rails 8 and SQLite.