- http://stackoverflow.com/questions/35323950/hibernate-associations-using-too-much-memory
- http://www.mkyong.com/hibernate/hibernate-fetching-strategies-examples/
- https://developer.jboss.org/wiki/AShortPrimerOnFetchingStrategies
- https://dzone.com/articles/lazyeager-loading-using
- http://www.laliluna.com/articles/java-persistence-hibernate/performance-tips-hibernate-java-persistence.html
- http://blog.jhades.org/performance-tuning-of-spring-hibernate-applications/
- http://www.thoughts-on-java.org/tips-to-boost-your-hibernate-performance/
- http://arnosoftwaredev.blogspot.com/2011/01/hibernate-performance-tips.html
- http://arnosoftwaredev.blogspot.com/2011/01/fetching-strategies-in-hibernate.html
- http://vladmihalcea.com/2013/10/17/hibernate-facts-the-importance-of-fetch-strategy/
- http://what-when-how.com/hibernate/optimizing-fetching-and-caching-hibernate/
- http://www.laliluna.com/articles/java-persistence-hibernate/performance-tips-hibernate-java-persistence.html
- https://dzone.com/articles/hibernate-performance-tuning
Tuesday, March 22, 2016
Hibernate Performance Tuning
Monday, March 21, 2016
hibernate improve database performance
hibernate improve database performance
- In the query string, you should use jdbc placeholder? Or use named parameters: Do not use the query string value instead of the very values.
- Flush affect performance, frequently refreshed affect performance, minimize unnecessary refresh.
- Cascade strategy, a few to several relationships set correctly cascade strategy, to think clearly in the operation target A cascade operation, while the need for an object B, such as one to many relationship between father and son, the father removed one, required level United delete child many, this time can be set to one end of this cascade = "delete", so when you delete one, the child is automatically deleted, but the pair does not affect the parent. Cascade has other property values, as long as the settings are correct, you can improve performance.
- Lazy policy set correctly delay loading strategy will also enhance the performance, one to many or many to many, the total delay should normally be loaded into the memory of many of the party. Set lazy = "true", first send sql statements to load itself into memory only when needed to load Cascading objects; lazy = "false", is simultaneously loaded into memory objects themselves and cascade.
- In addition to the performance of the collection (set, list, map, array ), should be set up correctly.
- The proper use of third-party cache, read frequently writes small operating conditions, the use of third-party cache can significantly improve performance, such as ehcache caching strategies have: read-only, read-write and notstrict-read-write.
Friday, March 18, 2016
Omio Bani
A string doesn't have an encoding - or it's always UTF-16, if you want to think of it like that. There's no such thing as "a UTF8 string". If you've converted some binary data into a String using the wrong encoding, you're in trouble already
Hash maps only use hash codes to find keys efficiently. When you ask the map to find a value, it basically has to iterate over all its entries, at which point there's no point in using
hashCode(), so it just calls equals.
If you try the map the other way round, with
Test as the key instead of the value, that won't work without overriding hashCode.
Subscribe to:
Posts (Atom)