ACID Properties
Cheat sheet · https://pcornel.dk/topic.php?topic=6161
Answer
ACID: Atomicity (all or nothing), Consistency (constraints hold), Isolation (concurrent transactions don't interfere beyond the chosen level), Durability (committed data survives crashes).
Remember
Durability depends on settings like fsync, synchronous_commit, innodb_flush_log_at_trx_commit — disabling them trades safety for speed. Isolation level decides which anomalies are possible.
First checks
SHOW synchronous_commit;— first check for this topicpsql -c "SELECT now(), version();"— PostgreSQL reachable and versionmysql -e "SELECT NOW(), VERSION();"— MariaDB/MySQL reachable and versionsqlcmd -S <server> -Q "SELECT @@VERSION"— SQL Server reachable and version
Verify in this order
transaction → atomic commit → constraints checked → isolated reads → flushed to durable storage
Where it usually breaks
Relaxed durability (for example synchronous_commit=off) can lose the last commits on crash.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6161