Our AI future is a lot less grand than I expected.
SQLite in Production: Lessons from Running a Store on a Single File
11–20 of 135 posts
Re: SQLite in Production: Lessons from Running a Store on a Single File
#12Re: SQLite in Production: Lessons from Running a Store on a Single File
#13I've a busy app, i just deploy to canary. And use loadbalancer to move 5% traffic to it, i observe how it reacts and then rollout the canary changes to all. how hard and complex is it to roll out postgres?
Re: SQLite in Production: Lessons from Running a Store on a Single File
#14https://sqlite.org/cli.html#special_commands_to_sqlite3_dot_...
Re: SQLite in Production: Lessons from Running a Store on a Single File
#15The fix appears to nicely asking the forgetful unreliable agent to please (very closely pretty please!) follow the deploy instructions (and also please never hallucinate or mess up, because statistics tells us an entity with no long term memory and no incentive to get everything right will do the job right 99.99999999% of the time, which is good enough to run an eshop) not deploy too often per hour. With one simple i…
I do not understand the level of carelessness and lack of thinking displayed in the OP.
Re: SQLite in Production: Lessons from Running a Store on a Single File
#16SQLite has a ".backup" command that you should always use to backup a SQLite DB. You're risking data loss/corruption using "cp" to backup your database as prescribed in the article. https://sqlite.org/cli.html#special_commands_to_sqlite3_dot_...
Re: SQLite in Production: Lessons from Running a Store on a Single File
#17SQLite has a ".backup" command that you should always use to backup a SQLite DB. You're risking data loss/corruption using "cp" to backup your database as prescribed in the article. https://sqlite.org/cli.html#special_commands_to_sqlite3_dot_...
Yeah, using cp to backup sqlite is a very bad idea. And yet, unless you know this, this is what Claude etc will implement for you. Every friggin' time.
Does your OS have a single-user mode?
Re: SQLite in Production: Lessons from Running a Store on a Single File
#18Redis, four dbs, container orchestration for a site of this modest scope… generated blog posts. Our AI future is a lot less grand than I expected.
Re: SQLite in Production: Lessons from Running a Store on a Single File
#19> The technical fix was embarrassingly simple: stop pushing to main every ten minutes. Wait, you push straight to main? > We added a rule — batch related changes, avoid rapid-fire pushes. It's in our CLAUDE.md (the governance file that all our AI agents follow): > Avoid rapid-fire pushes to main — 11 pushes in 2h caused overlapping Kamal deploys with concurrent SQLite access. Wait, you let _Claude_ push your e-commer…
Re: SQLite in Production: Lessons from Running a Store on a Single File
#20> The technical fix was embarrassingly simple: stop pushing to main every ten minutes. Wait, you push straight to main? > We added a rule — batch related changes, avoid rapid-fire pushes. It's in our CLAUDE.md (the governance file that all our AI agents follow): > Avoid rapid-fire pushes to main — 11 pushes in 2h caused overlapping Kamal deploys with concurrent SQLite access. Wait, you let _Claude_ push your e-commer…