What’ll happen when multiple database transactions are reading/writing records at the same time. Will their operations be strictly serialized by using locks, or just work on the same data copy without any sync restiction?
The answer is: that depends on the transaction isolation level we use. ANSI defines 4 isolation leves (from fatest to safest):
The answer is: that depends on the transaction isolation level we use. ANSI defines 4 isolation leves (from fatest to safest):
- Serializable
- Repeatable Read
- Read Commited
- Read Uncommited
There’s a wiki page (http://en.wikipedia.org/wiki/Isolation_(database_systems) explains the isolation levels in detail, with intuitive examples.
Entries (RSS)