Database acid Principles
A: Atomicity, atomicity
C: Consistency, consistency
I: Isolation, isolation
D: Persistent, durability
In MySQL InnoDB engine, atomicity, consistency, isolation through redo and undo implementation, Redo is ib_logfile physical files, and undo by default in the shared Tablespace ibdata, by setting parameters can be independent.
Transaction ISOLATION LEVEL
READ UNCOMMITTED the disadvantage of allowing dirty reads, not allowing simultaneous write operations, but allowing other transactions to read UNCOMMITTED data
Read Committed, the disadvantage is that it allows for Phantom reads (data that has not previously existed but has been submitted later), does not allow simultaneous write operations, allows only read committed data, but allows non-repeatable reads (two read data allow inconsistencies), The default isolation level for Oracle and SQL Server.
REPEATABLE READ (repeatable read), prohibit non-repeatable reads and dirty reads, in extreme cases there will be phantom read, overall acid-compliant, MySQL default isolation level.Serializable (serialization), the disadvantage is poor concurrency, the most stringent transaction isolation, fully comply with the acid principle,
Database acid principles and transaction isolation levels