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 个类别
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达,可以邮件至 963614756@qq.com。