标签: hikaricp
我读到了HikariCP并且有一个信息:
一个Statement周期定义为单Connection.prepareStatement(),Statement.execute(),Statement.close()。
Statement
Connection.prepareStatement()
Statement.execute()
Statement.close()
我的问题很简单:
如果我在主线程上调用它:HikariData.getConnection()。executeStmt(stmt);
它会在主线程上运行并阻止它(如果查询很大)或将在后台运行吗?
答案 0 :(得分:0)
它将在您当前的线程上运行。