Skip to content Skip to sidebar Skip to footer

How Can We Profile Jooq Statements For Speed

I already have implemented JOOQ with Union Platform as a java based game server and using Union Platform's Orbiter Micro (Union JS Client) for running it on a browser. However, eve

Solution 1:

That sounds like normal SQL tuning question (or maybe several distinct ones) to me. Given that jOOQ lets you execute actual SQL, and there is a lot that can go wrong when using OUTER JOIN without correct indexing and constraints, it is likely that the problem is with the SQL itself. When you turn on debug / trace logging, jOOQ will print out several pieces of information to the log output, including

DEBUG level

  • SQL statements
  • First 5 records of result
  • Statement execution time

TRACE level

  • Same as DEBUG level
  • Statement preparation time
  • Bind values
  • Statement bind time

This will work if you put log4j or slf4j on your classpath along with jOOQ. More details are documented in this blog post

That's a start. You could also use a tool like Yourkit Profiler or JProfiler. And obviously, you should consider your Postgres execution plans. There are some indications about that here in the Postgres documentation.

Post a Comment for "How Can We Profile Jooq Statements For Speed"