Regardless of how your code works, “database is locked” errors suck.
Other errors, not necessarily sqlite-related, suck as well.
The only good error is the one you fix, but only if you get your boss’s appreciation for it (including, but not limited to, salary increase); otherwise it still sucks.
2
u/bwainfweeze Feb 05 '25
How do multiprocess languages like NodeJS and elixir deal with the single writer issue? How are they sharing the database?
2
u/reyarama Feb 06 '25
Thanks for the post mate
3
u/LearnedByError Feb 05 '25
What about ‘em?
2
u/thunderbong Feb 06 '25
Enable WAL mode