当前位置:Gxlcms > 数据库问题 > 提高数据库效率

提高数据库效率

时间:2021-07-01 10:21:17 帮助过:2人阅读

(1) JAVA中 将 connection放到连接池中,每次使用连接 try{

 connection = DBConnectionPool.getInstance().getConnection();

}catch() finally{connection.close();}

 

将 数据库的关闭连接放到 finally中;

提高数据库效率

标签:

人气教程排行