Simple we have like 3 engineers, normally only one is estimating at a time 😂 GO and my setup makes it fairly trivial to migrate the DB to something like postgres if it becomes an issue.
Different threads would only matter if on the same machine. If the database file lives on a network share, then according to the FAQ you'd be at the whims of your NFS implementation or Windows cooperating. This guide looks pretty dated though; one would think modern operating systems have this figured out by now.
It's not really dated, last modified on 2023-12-22 14:38:37 UTC .
one would think modern operating systems have this figured out by now
File locking on network drives is just a bad idea with a lot of security, stability and performance concerns. It's avoided on purpose for good reasons.
SQLite is extremely reliable and resilient, it's the only database certified for use by NASA in space, where they need to be able to handle stuff like bits getting flipped on drives or RAM by radiation.
Most people would need multiple processes accessing the data though. For example an analytics dashboard or some process that moves the data to a warehouse or whatnot.
Those processes can't write to the database. There can only be one writer at a time and if you have multiple processes you have to explicitly lock the file
Sqlite is safe for concurrent use, but implements it with a lock, so there is no actual concurrency and writers take turns. Shared drives may break locking and corrupt the database.
6
u/syntaktik Sep 10 '24
How are you handling the concern in the FAQ: https://www.sqlite.org/faq.html on section 5? No concurrency issues at all?