提交 85f438db 编写于 作者: Z zyyang

change

上级 7f147e05
......@@ -85,10 +85,10 @@ public class TaosDemoApplication {
start = System.currentTimeMillis();
if (config.doCreateTable) {
superTableService.create(superTableMeta);
if (config.autoCreateTable)
return;
// 批量建子表
subTableService.createSubTable(superTableMeta, config.numOfTables, config.prefixOfTable, config.numOfThreadsForCreate);
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册