Hibernate Performance-Tuning
Thursday, February 26th, 2009Today, I spent some time to dive deeply into the heart of the Semtinel Core to fix a performance leak that occured since I did some experiments with rather large annotation sets. I ran into several difficulties that might be interesting to other developers as well, so this post covers the following topics:
- Tracing of SQL statements for performance tuning of the H2 database.
- Generating statistics for H2 in order to see, where the time is lost.
- How to configure a single-value property in Hibernate for lazy fetching using annotations.
- Extending the Netbeans build.xml, so that the necessary bytecode instrumentation is done automatically at build time.