提高数据库效率

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

try{

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

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

  

 

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

posted @ 2015-09-21 13:01  aspirant  阅读(247)  评论(0编辑  收藏  举报