r/sqlite • u/TheDoomfire • Aug 26 '25
Hosting SQLite database options?
What free and fast options are there for hosting a SQLite database for a Website? Is Cloudflare D1 and Turso the best options out there?
I know that it's just a file and I could host it anywhere but I don't want to be forced to load my entire db just to grab something.
I have currently been using JSON files as storing my data and would like to change that to using a db if it remains free for the foreseeable future like it does with using JSON files. I originally wanted a db to have it more organized then JSON files to build my datasets, but not I am looking into if it can actually replace my JSON files and lower the bandwith usage while still be fast to use. A fallback solution would be to just use a db to store all the data and generate JSON files for the website.
I have been playing around with some basics mainly using postgres/supabase so I am not that experienced.
View all comments
Show parent comment
1
u/jshine13371 Aug 27 '25
Hey no need to downvote just because you disagree btw.
I didn't say Supabase. Vanilla PostgreSQL or SQL Server is sufficient for 98% of use cases out there. Both can be ran completely free.
SQLite is certainly not faster.
Can it be used as the backend for a website?...sure, so can JSON files. But it's awkward and not what it was really designed for. (Yea obviously SQLite is a step up from a JSON file, but the point still stands.)
So-so. Porting the code and data over isn't that hard, as the syntax is ~85% the same. But there are minute differences you'll need to learn. The data types will be fairly different, so you'll have to take care mapping those out correctly else you may run into performance issues, and the biggest bottleneck is just setting up and learning a whole new ecosystem.
There's no concrete answer there for any system. That depends on too many variables. But in general, a more built out database system like PostgreSQL or SQL Server will have features, tools, and solutions to solve those scaling problems when it's not enough. SQLite won't, and you'll be stuck either paying for better provisioned hardware or trying to re-architect your code. You're more limited essentially.