1.2 KiB
1.2 KiB
Database-Specific Defaults
PostgreSQL
Default: ReadCommitted
Supported levels:
Serializable(strictest)RepeatableReadReadCommitted(default)
Notes:
- PostgreSQL uses true Serializable isolation (not snapshot isolation)
- May throw serialization errors under high concurrency
- Excellent MVCC implementation reduces conflicts
MySQL
Default: RepeatableRead
Supported levels:
SerializableRepeatableRead(default)ReadCommittedReadUncommitted(not recommended)
Notes:
- InnoDB engine required for transaction support
- Uses gap locking in RepeatableRead mode
- Serializable adds locking to SELECT statements
SQLite
Default: Serializable
Supported levels:
Serializable(only level - database-wide lock)
Notes:
- Only one writer at a time
- No true isolation level configuration
- Best for single-user or low-concurrency applications
MongoDB
Default: Snapshot (similar to RepeatableRead)
Supported levels:
Snapshot(equivalent to RepeatableRead)Majorityread concern
Notes:
- Different isolation model than SQL databases
- Uses write-ahead log for consistency
- Replica set required for transactions