Parent Directory | Revision Log | Patch
revision 2331 by torben, Fri Feb 20 08:58:19 2015 UTC | revision 2423 by torben, Tue Mar 3 08:30:02 2015 UTC | |
---|---|---|
# | Line 216 public class Database { | Line 216 public class Database { |
216 | ||
217 | saveStmt.addBatch(); | saveStmt.addBatch(); |
218 | batchCount++; | batchCount++; |
219 | if (batchCount >= 100) { | if (batchCount >= 1000) { |
220 | saveStmt.executeBatch(); | saveStmt.executeBatch(); |
221 | batchCount = 0; | batchCount = 0; |
222 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |