Reputation: 7491
Can anybody recommend the software to analyze/optimize existent queries in the Java/Tomcat application. About 70% of queries are generated by Hibernate. The database is PostgreSQL but I would like to use general solution, not for a particular database
Upvotes: 2
Views: 498
Reputation: 324465
There's no magic product for this, no "make my queries go faster".
What you can do is use a profiling tool like Hibernate Profiler to trace your database activity. Hibernate's built-in logging is also useful. See how to measure hibernate performance? for more detail.
These won't give you a recipe to make things go faster; you'll have to look at the hot-spots and:
You can also examine the PostgreSQL logs:
log_statement = 'all'
, log_min_duration_statement = 0
)It can also be useful to:
auto_explain
module and enable itUpvotes: 3