【发布时间】:2020-11-07 04:53:25
【问题描述】:
我可以在 JOOQ 中的查询上运行 explain analyze 吗?喜欢:
explain analyse select some, columns from some_table
但是在 PostgreSQL 数据库上使用 JOOQ 吗?
我找到了一个接口org.jooq.Explain,带有一个方法DSLContext.explain(Query query) - 但它似乎只是在查询中使用EXPLAIN:
@Support({AURORA_MYSQL,AURORA_POSTGRES,H2,HSQLDB,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLITE})
Explain explain(Query query)
Run an EXPLAIN statement in the database to estimate the cardinality of the query.
有什么明智的方法可以从代码端在数据库上运行EXPLAIN ANALYZE?
【问题讨论】:
标签: java postgresql jooq explain