我做一個excel數據導入,一次的數據插入量大概6000左右記錄
可能多人同時上傳文件並導入到數據庫。操作多時tomcat報錯java.lang.OutOfMemoryError,並可能死機。
我的主要代碼: PreparedStatement stmt;
  大的循環:
   stmt.setString(1,id)
   ...
   stmt.execute();
 循環結束。