Earlier quoted context omitted.
To be fair they also say > Generally speaking, any site that gets fewer than 100K hits/day should work fine with SQLite.
So about one per second (up to ten, less conservatively). I concur. But if you think your site might ever scale beyond that, do yourself a favor and use Postgres from the get-go.
Learning a few things about running SQLite
51–60 of 101 posts
Re: Learning a few things about running SQLite
#52> I’ve been backing up to AWS, which is always a pain because it’s annoying to navigate the AWS console to generate credentials. I got so annoyed with that a few years ago that I ended up building a whole tool just to solve that one problem: uvx s3-credentials create my-existing-s3-bucket This spits out read-write credentials that are scoped JUST for that bucket. You can add --read-only or --write-only to have creden…
Re: Learning a few things about running SQLite
#53Re: Learning a few things about running SQLite
#54Re: Learning a few things about running SQLite
#55It's great! However, it's only meant for local systems. Once you need to connect over a network or robustly handle simultaneous requests, you need something like postgres.
Don't move to the network unless you have to - every single request gets massively slowed down because it has replaced local reads with network connections.
Of course if you are building a startup you must consider scaling.
Re: Learning a few things about running SQLite
#56And yes, never allow the files to be deleted from outside. The transfer is a one way valve. If uploading, it’s a write-only operation, no delete unless the file has meta data for expiry.
Re: Learning a few things about running SQLite
#57I run my backups like this: OUT="${i}.sql.zst" PART="${OUT}.part" sqlite3 -readonly "${i}" .dump | zstd --fast --rsyncable -v -o "${PART}" - mv "${PART}" "${OUT}" That doesn't block writers (when the writer uses WAL), and gives me a dump that's compressed well while also being easy to sync. My Home Assistant DB is 1.8GB, my dump is 286MB compressed, and I'd guess 90% of that is consistent from one day to the next.
Re: Learning a few things about running SQLite
#58Re: Learning a few things about running SQLite
#59Earlier quoted context omitted.
this is pretty brilliant, aws cli should sherlock this. when would you want write only?
For logging, in particular for an environment where you don't want a leaked credential to allow the deletion of any previously recorded files.