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