Re:Rqlite: Replicated SQLite using the Raft consensus protocol
by lobster_johnson on Saturday February 27, 2016 @02:33PM
(#11188105)
Thanks, that's useful. I know nothing about SQLite's concurrency model, but it's not surprising that it can't compete with Postgres.
Does this mean that ActorDB relies on LMDB to replace the WAL? I don't know enough about LMDB either, but I presume it has some kind of redo log.
Re:Rqlite: Replicated SQLite using the Raft consensus protocol
by biokoda on Saturday February 27, 2016 @02:40PM
(#11188130)
Yes ActorDB takes sqlite3.c, takes out the wal.c code and replaces it with calls to LMDB. There is no redo log, LMDB is designed in such a way that it does not require it. It is actually verified as the safest storage engine design out there.
Re:Rqlite: Replicated SQLite using the Raft consensus protocol
by thesz on Saturday February 27, 2016 @05:09PM
(#11188739)
Do you have a link on the LMDB verification?
What I know is that SQLite IS safe to use even on unsafe file systems. There was a discussion here few months ago (link was from danloo.com).
Compared to a single SQLite instance ActorDB has two major advantages. No write multiplication due to using LMDB and compression which means reads/writes are significantly smaller. SQLite will always write everything twice. First to WAL, then to the SQLite file and it has no compression capabilities. It should completely trounce rqlite in the performance department.