You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

path: util/aop/aop-dao/src/main/java/com/knubisoft/aop/dao/SlowSqlQueryExecutionAspect.java

SlowSqlQueryExecutionAspect has the same behavior as SlowHttpRequestProcessingAspect only difference is that it counts SQL query execution time.

SlowSqlQueryExecutionAspect annotated with @ConditionalOnExpression("${aop.dao.enabled:true}"), so to 'enable' this aspect you must set the property aop.dao.enabled within the application.yaml to true.

Also, you have to set a duration value in the delaysTracking section within the application.yaml, property delaysTracking.dao-duration acts like a threshold from which the aspect is based when deciding if an SQL query execution is slow.


  • No labels