Book: SQL Turning, Database Systems
Lock: Optimistic Lock and Pessimistic Lock
Performance:
- Extra-lazy
"Extra-lazy" collection fetching: individual elements of the collection are accessed from the database as needed. Hibernate tries not to fetch the whole collection into memory unless absolutely needed. It is suitable for large collections.
- Hibernate Statistics
- 调试方法:打印sql,寻找有问题的sql.
Resource: