change
This commit is contained in:
parent
7f147e0550
commit
85f438db23
|
@ -85,11 +85,11 @@ public class TaosDemoApplication {
|
||||||
start = System.currentTimeMillis();
|
start = System.currentTimeMillis();
|
||||||
if (config.doCreateTable) {
|
if (config.doCreateTable) {
|
||||||
superTableService.create(superTableMeta);
|
superTableService.create(superTableMeta);
|
||||||
if (config.autoCreateTable)
|
if (!config.autoCreateTable){
|
||||||
return;
|
|
||||||
// 批量建子表
|
// 批量建子表
|
||||||
subTableService.createSubTable(superTableMeta, config.numOfTables, config.prefixOfTable, config.numOfThreadsForCreate);
|
subTableService.createSubTable(superTableMeta, config.numOfTables, config.prefixOfTable, config.numOfThreadsForCreate);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
end = System.currentTimeMillis();
|
end = System.currentTimeMillis();
|
||||||
logger.info(">>> create table time cost : " + (end - start) + " ms.");
|
logger.info(">>> create table time cost : " + (end - start) + " ms.");
|
||||||
/**********************************************************************************/
|
/**********************************************************************************/
|
||||||
|
|
|
@ -27,8 +27,8 @@ public final class JdbcTaosdemoConfig {
|
||||||
public boolean autoCreateTable = true;
|
public boolean autoCreateTable = true;
|
||||||
public long numOfTables = 10;
|
public long numOfTables = 10;
|
||||||
public long numOfRowsPerTable = 10;
|
public long numOfRowsPerTable = 10;
|
||||||
public int numOfTablesPerSQL = 2;
|
public int numOfTablesPerSQL = 1;
|
||||||
public int numOfValuesPerSQL = 2;
|
public int numOfValuesPerSQL = 1;
|
||||||
public int numOfThreadsForCreate = 1;
|
public int numOfThreadsForCreate = 1;
|
||||||
public int numOfThreadsForInsert = 1;
|
public int numOfThreadsForInsert = 1;
|
||||||
public long startTime;
|
public long startTime;
|
||||||
|
|
Loading…
Reference in New Issue