SQLite in Production: Lessons from Running a Store on a Single File
1–10 of 135 posts
Re: SQLite in Production: Lessons from Running a Store on a Single File
#2More simply:
sqlite> select typeof('{a:1}'->>'a') ;
╭──────────────────────╮
│ typeof('{a:1}'->>... │
╞══════════════════════╡
│ integer │
╰──────────────────────╯
vs: sqlite> select typeof('{a:1}'->'a') ;
╭──────────────────────╮
│ typeof('{a:1}'->'a') │
╞══════════════════════╡
│ text │
╰──────────────────────╯Re: SQLite in Production: Lessons from Running a Store on a Single File
#3Wait, 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-commerce code straight to main which immediately results in a production deploy?
Re: SQLite in Production: Lessons from Running a Store on a Single File
#4I use gobackup[0] as another container in compose.yml file which can backup to multiple locations.
Re: SQLite in Production: Lessons from Running a Store on a Single File
#5> 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…
Doctor: simply do not do that
Re: SQLite in Production: Lessons from Running a Store on a Single File
#6> 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…
Patient: doctor, my app loses data when I deploy twice during a 10 minute interval! Doctor: simply do not do that
Patient: but doctor,
Re: SQLite in Production: Lessons from Running a Store on a Single File
#7how hard and complex is it to roll out postgres?
Re: SQLite in Production: Lessons from Running a Store on a Single File
#8With one simple instruction the system (99.9999% of the time) gains the handy property that “only” two processes end up with the database files open at once.
Thanks for the vibes!
Re: SQLite in Production: Lessons from Running a Store on a Single File
#9This is becoming the new overused LLM goto expression for describing basic concepts.
Re: SQLite in Production: Lessons from Running a Store on a Single File
#10please consider writing it yourself. quirks in human writing is infinitely more interesting than a next-token-predicted 500 word piece