▲ | sethev 4 days ago | |||||||
The documentation seems pretty clear to me - it describes specifically what each option controls and the implications of using it. Besides debating whether the default behavior is should be described as durable or not, this post's author seems to understand exactly what each option actually does. Perhaps what's unclear is when to select which option? | ||||||||
▲ | avinassh 4 days ago | parent | next [-] | |||||||
I wrote the first article, and I thought documentation is clear, but then I saw comment by Hipp which got confused me: > If you switch to WAL mode, the default behavior is that transactions are durable across application crashes (or SIGKILL or similar) but are not necessarily durable across OS crashes or power failures. Transactions are atomic across OS crashes and power failures. But if you commit a transaction in WAL mode and take a power loss shortly thereafter, the transaction might be rolled back after power is restored. https://news.ycombinator.com/item?id=45014296 the documentation is in contradiction with this. | ||||||||
▲ | agwa 4 days ago | parent | prev [-] | |||||||
I found the documentation much harder to parse than the equivalent PostgreSQL docs (https://www.postgresql.org/docs/current/wal-async-commit.htm...). Also, even if I've understood the docs correctly, a number of people in this thread and elsewhere have come to a different interpretation. I think that's much less likely to happen with the PostgreSQL docs. And I'm sure you can understand why I began to doubt my own interpretation of the docs when SQLite's creator posted a comment saying the exact opposite of what I thought the docs said! | ||||||||
|