DB
ORMs And ACID
- ORMs
- ACID
- Atomicity: the “all or nothing” rule — the transaction either happens completely or doesn’t happen at all
- Consistency: data is consistent before and after a transaction without any missing steps
- Isolation: multiple transactions can happen concurrently without reading the wrong data
- Durability: transactional success is robust to system failure
- Transactions
- rollback
- commit
- N+1 查询:运行一个查询来获取类别列表,然后运行另一个查询来获取每 N 个类别
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.