Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
donut
· 5y ago · 0 comments
Where's the SQLite database written? How do you ensure only one writer is modifying it?
Comments
[–]
warpech
5y ago
Two-phase commit[0] could do the job
[0]
https://en.m.wikipedia.org/wiki/Two-phase_commit_protocol
[–]
johncena33
5y ago
How do you do two phase commit on a sqlite database file?
[–]
warpech
5y ago
I don't know SQLite specifically, but I think that it can be implemented in the application logic using the primitives of any RDBMS. This old thread suggests that
http://sqlite.1065341.n5.nabble.com/Re-Two-Phase-commit-usin...