change
This commit is contained in:
parent
d304641011
commit
33e14d6d64
|
@ -146,7 +146,10 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner {
|
||||||
}
|
}
|
||||||
// insert
|
// insert
|
||||||
if (config.autoCreateTable) {
|
if (config.autoCreateTable) {
|
||||||
|
long a = System.currentTimeMillis();
|
||||||
subTableService.insertAutoCreateTable(data, config.numOfThreadsForInsert, config.frequency);
|
subTableService.insertAutoCreateTable(data, config.numOfThreadsForInsert, config.frequency);
|
||||||
|
long b = System.currentTimeMillis();
|
||||||
|
System.out.println(">>> time cost: " + (b - a) + " ms");
|
||||||
} else {
|
} else {
|
||||||
subTableService.insert(data, config.numOfThreadsForInsert, config.frequency);
|
subTableService.insert(data, config.numOfThreadsForInsert, config.frequency);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue