提高数据库效率

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

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

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

 

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

你可能感兴趣的:(提高数据库效率)