I'd like to test how selecting and loading data in java application using hibernate
and mysql
can be optimized.
I divided results I found into 2 groups
MySQL
- indexes - for sure
- stored procedures - is there a difference if select is done in stored procedure?
- views - is there a difference if select definition is kept in view?
- query cache - does it work only if we do the same select second time?
Hibernate
- hibernate cache - is this similar to query cache? how it can be configured?
- lazy loading - can it help?
Are there any other ways? I use simple queries with several joins and aggregation functions. I need to demonstate time changes between "before" and "after" optimization.
For more information I tried to read this, but language is to complicated for me.