1.使用连接地 2.关闭自动提交功能 conn.setAutoCommit(false) 关闭后需要手工调用commit()和rollback() 3.使用PreparedStatement预编译 4.建立索引