JDBC 查询mysql数据库比客户端工具慢的解决办法

在URL链接参数中配置rewriteBatchedStatements、useServerPrepStmts为true

url="jdbc:mysql://****/dbName?useSSL=false&rewriteBatchedStatements=true&useServerPrepStmts=true"

查询调用情况:

show global status like '%prepare%';

猜你喜欢

转载自www.cnblogs.com/101key/p/11624996.html