mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2211 - Improve query plan capture - Align config property names
collectQueryPlans -> queryPlanEnable collectQueryPlanThresholdMicros -> queryPlanThresholdMicros properties keys: ebean.collectQueryPlans -> ebean.queryPlan.enable ebean.collectQueryPlanThresholdMicros -> ebean.queryPlan.thresholdMicros This then aligns all the queryPlan related properties together which is important in order to avoid confusion.
This commit is contained in:
1 parent
ee8bb5ef75
commit
a8bf27da55
4 files changed
+26
-20
No files matched your search
@@ -617,10 +617,10 @@ public class InternalConfiguration {
|
||||
}
|
||||
|
||||
public QueryPlanManager initQueryPlanManager(TransactionManager transactionManager) {
|
||||
if (!config.isCollectQueryPlans()) {
|
||||
if (!config.isQueryPlanEnable()) {
|
||||
return QueryPlanManager.NOOP;
|
||||
}
|
||||
long threshold = config.getCollectQueryPlanThresholdMicros();
|
||||
long threshold = config.getQueryPlanThresholdMicros();
|
||||
return new CQueryPlanManager(transactionManager, threshold, queryPlanLogger(databasePlatform.getPlatform()), extraMetrics);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user