This commit is contained in:
zyyang 2021-01-27 13:46:26 +08:00
parent df6bc52856
commit 45a0bf5c15
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class ConnectionPoolDemo {
// }
ExecutorService executor = Executors.newFixedThreadPool(threadCount);
for (long i = 0; i < totalSize / batchSize; i++) {
for (long i = 0; i < totalSize / batchSize / tableSize; i++) {
executor.execute(new InsertTask(dataSource, dbName, tableSize, batchSize));
// sleep few seconds
try {