O'Reilly logo

Hands-On High Performance with Spring 5 by Dinesh Radadiya, Prashant Goswami, Pritesh Shah, Subhash Shah, Chintan Mehta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Miscellaneous

The following are general Hibernate best practices for achieving better performance in your application:

  • Avoid enabling generate_statistics on the production system; rather, analyze issues by enabling generate_statistics on a staging or a replica of the production system.
  • Hibernate always updates all database columns, even though we update one or a few columns only. All of the columns in the UPDATE statement would take more time than a few columns. In order to achieve high performance and avoid using all of the columns in an UPDATE statement, only include the columns that are actually modified and use the @DynamicUpdate annotation on an entity. This annotation tells Hibernate to generate a new SQL statement for each update ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required