Skip to content

Commit

Permalink
[#16031] SQLPerformanceWarning should log hint about gathering dictio…
Browse files Browse the repository at this point in the history
…nary statistics in OracleDatabase
  • Loading branch information
lukaseder committed Jan 8, 2024
1 parent bc06815 commit 0007017
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jOOQ-meta/src/main/java/org/jooq/meta/AbstractDatabase.java
Expand Up @@ -47,6 +47,7 @@
// ...
import static org.jooq.SQLDialect.CUBRID;
import static org.jooq.SQLDialect.FIREBIRD;
// ...
import static org.jooq.SQLDialect.SQLITE;
// ...
import static org.jooq.impl.DSL.case_;
Expand Down Expand Up @@ -485,6 +486,11 @@ public void executeEnd(ExecuteContext ctx) {
"Slow SQL",
"jOOQ Meta executed a slow query (slower than " + s + " seconds, configured by configuration/generator/database/logSlowQueriesAfterSeconds)"
+ "\n\n"
+ "In some RDBMS, this can be caused by outdated statistics on the information schema / dictionary / meta data views.\n"



+ "\n"
+ "If you think this is a bug in jOOQ, please report it here: https://jooq.org/bug"
+ "\n\n```sql\n"
+ formatted(ctx.query())
Expand Down

0 comments on commit 0007017

Please sign in to comment.