使用Gbase数据库时,配置Druid数据源会报关于slowSqlMillis和mergeSql属性的错误。
从实现代码来看,仅仅是一个mergeSql的缺省值。慢SQL记录 StatFilter属性slowSqlMillis用来配置SQL慢的标准,执行时间超过slowSqlMillis的就是慢。slowSqlMillis的缺省值为3000,也就是3秒。connectionProperties=druid.stat.logSlowSql=true;druid.stat.slowSqlMillis=5000在上面的配置中,slowSqlMillis被修改为5秒,并且...
2572 run - create connection SQLException, url: jdbc:gbase://10.77.10.10:5258/ test, errorCode 0, state null java.sql.SQLException: driver not support property druid.stat.slowSqlMillis. at com.gbase.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :378) ~[gbase-connector-java-8.3.81...
setMergeSql(true); statFilter.setSlowSqlMillis(300); statFilter.setLogSlowSql(true); return statFilter; } Example 2Source File: DruidConfig.java From springbootexamples with Apache License 2.0 5 votes @Bean public Filter statFilter(){ StatFilter filter = new StatFilter(); filter.set...