change
This commit is contained in:
parent
df6bc52856
commit
45a0bf5c15
|
@ -79,7 +79,7 @@ public class ConnectionPoolDemo {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
ExecutorService executor = Executors.newFixedThreadPool(threadCount);
|
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));
|
executor.execute(new InsertTask(dataSource, dbName, tableSize, batchSize));
|
||||||
// sleep few seconds
|
// sleep few seconds
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue