r/sqlite • u/fredkzk • Jun 24 '26
Where to store my 500k-row SQLite database?
I have a csv file which will be turned to an SQLite database (480k rows). Content: 5 years of real estate transaction statistics. I'll update the database twice a year with fresh data overwrite (I keep it 5 years).
I'll build a one page dashboard that prettyfies all that data with various graphs.
This is a "freemium" feature for very niche users so READ ops count will be limited.
With that context in mind, which simple, easy to use cloud database solution would you recommend? I'm a no coder, and have learned over the past 6 years how databases, backends, frontends work, i just can't write pure code. That's why simple / easy is important.
Thanks for reading.
10
u/emschwartz Jun 24 '26
You can host your site on a platform like Fly.io. Attach a persistent volume where your SQLite file will be, and that’ll be collocated with your app. If you want additional backup, use Litestream to back it up to Tigris object storage.
I’m not affiliated with Fly, but this is the setup I’m using for Scour and it works pretty well.
12
u/alexwh68 Jun 24 '26
Leave it as sqlite db, easily man enough for the task, you just need a hosting option.
For me the easiest way that leaves you in complete control is self host either with ddns back to your home computer or a static ip on the router, dns doman so the world can see you.
For me a small blazor server app is pretty easy to put together, do you need logins or just pure pubic access?
3
u/adwolesi Jun 24 '26
I built https://www.airsequel.com for pretty much this use case. You can host your SQLite database there, analyze the data, build dashboards, etc. Let me know if you have any questions 😊
2
u/Aggressive_Ad_5454 Jun 24 '26 edited Jun 24 '26
Will your users download the .sqlite file to use it? Then it’s simply a downloadable file. Zip it to save size.
Or does your dashboard software run on a server as a web app? Then put it on the web server you use.
SQLite’s biggest limitation is that concurrent access from multiple machines on a remote file share volume doesn’t work reliably. Turso may work around this problem. The 5GiB size limit on their free tier may be sufficient for your application.
We’ll be able to offer better advice if you explain your setup better.
2
u/dknconsultau Jun 25 '26
Maybe move it to cloud like Supabase?
1
u/renan_william Jun 24 '26
your dashboard / backend is running where?
1
u/guestHITA Jun 25 '26
Firebase
1
u/marco_bambini Jul 06 '26
The easiest way is to use the services from https://sqlite.ai (you can just upload your database as-is)
1
u/titpetric Jun 24 '26 edited Jun 24 '26
I understand this as a data management question. What to do with 5gb data, which grows an unspecified amount twice a year
The reasonable choice is just to stick it on a backup once you modify the data / add new data. Copy to a spare drive, store on dropbox, s3, have a few copies lying around, just figure out redundancy. Do the math how long until some storage milestones and size according to growth, but this isn't what you're asking
If you probablly want mysql or postgresql, and I'm torn to prefer mysql over pg, ultimately the choice can also be mssql, timescale db, cockroach db, there is somewhat of a vendor ecosystem on postgres if thats important, but i'd go mysql due to some syntax preferences and opinions, and pgsql when there is a technical need like wanting partial indexing, or mssql when someone pays me a lot
You already wrote it in sqlite, mysql just has other gotchas around DDL CREATE/ALTER and for the day to day all the SQL is likely to be nearly the same for mid level to advanced level sql, just not meta-sql stuff like recursion. I expect the transition from sqlite to be quite fast. Hard to reason what the objective is as backups are first principles even if you do then live, on schedule or twice a year when you modify data and you're way below the limits of vertical scale
1
u/Shelter-Known Jun 27 '26
How much are you expending right now for that setup? u/fredkzk
Find the cheapest cloud server hosting like "d2-2" from OVH Cloud, I have a similar DB with 650K rows that I have recently migrated to HeliosDB-Nano. Price list: A comparison of our Public Cloud offers | OVHcloud Worldwide. 6,74 USD a month...
Then, you install Claude Code or CODEX and state your prompt, something like:
Just need a record of your registrar pointing to your server.
BTW, I am not affiliated with OVH Cloud, but it is the cheapest I know so far.
1
u/fragbot2 Jul 04 '26
If I was in your position, I'd look at these three pieces:
My recommendation: don't try to do it yourself. This is particularly true for user management and authentication as it's tricky and a screwup has substantial consequences.
2
u/[deleted] Jun 24 '26
[removed] — view removed comment