7 ms·
Nice work. How do you handle concurrent writers on a single file? That's where embedded databases usually get tricky, and the graph model makes locking even mor
by vladigtr 23d ago
Nice work. How do you handle concurrent writers on a single file? That's where embedded databases usually get tricky, and the graph model makes locking even more interesting.
- smiths1999 23d agoWithin the same process it's enforced at the db level. After reviewing the code more I see we don't have a mechanism in place to manage safety across processes. Will add a file lock mechanism tonight. Great call out! In general though, the goal for this was single writer multiple readers. That was a design decision to keep things simple.
- smiths1999 22d agoJust added file locking to avoid concurrent writers across processes in the latest release.