June 2018
Intermediate to advanced
408 pages
11h 23m
English
Another major point to enhance performance is regarding Hibernate. Dirty checking is one of the features provided by Hibernate. In dirty checking, Hibernate automatically distinguishes whether an object is modified and needs to be updated. Hibernate does the dirty work to keep a mind on the performance cost, whenever required. At the point when a specific entity has a corresponding table with a large number of columns, the cost increases. To minimize the dirty checking cost, we can set the transaction to readOnly, which will increase the performance and eliminate the need for any dirty checks:
@Transactional(readOnly=true)public void performanceTestMethod() { ....}
Another improvement related to Hibernate can be taken ...
Read now
Unlock full access