提交 d3046410 编写于 作者: Z zyyang

change

上级 a150b2b6
...@@ -132,24 +132,24 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner { ...@@ -132,24 +132,24 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner {
/***********************************************/ /***********************************************/
long startTime = config.startTime + rowCnt * config.timeGap; long startTime = config.startTime + rowCnt * config.timeGap;
for (int i = 0; i < tableSize; i++) { // for (int i = 0; i < tableSize; i++) {
System.out.print(config.prefixOfTable + (tableCnt + i + 1) + ", tableSize: " + tableSize + ", rowSize: " + rowSize); // System.out.print(config.prefixOfTable + (tableCnt + i + 1) + ", tableSize: " + tableSize + ", rowSize: " + rowSize);
System.out.println(", startTime: " + TimeStampUtil.longToDatetime(startTime) + ",timeGap: " + config.timeGap); // System.out.println(", startTime: " + TimeStampUtil.longToDatetime(startTime) + ",timeGap: " + config.timeGap);
} // }
// 生成数据 // 生成数据
// List<SubTableValue> data = SubTableValueGenerator.generate(superTableMeta, config.prefixOfTable, tableCnt, tableSize, rowSize, startTime, config.timeGap); List<SubTableValue> data = SubTableValueGenerator.generate(superTableMeta, config.prefixOfTable, tableCnt, tableSize, rowSize, startTime, config.timeGap);
// List<SubTableValue> data = SubTableValueGenerator.generate(subTableMetaList, tableCnt, tableSize, rowSize, startTime, config.timeGap); // List<SubTableValue> data = SubTableValueGenerator.generate(subTableMetaList, tableCnt, tableSize, rowSize, startTime, config.timeGap);
// 乱序 // 乱序
// if (config.order != 0) { if (config.order != 0) {
// SubTableValueGenerator.disrupt(data, config.rate, config.range); SubTableValueGenerator.disrupt(data, config.rate, config.range);
// } }
// insert // insert
// if (config.autoCreateTable) { if (config.autoCreateTable) {
// subTableService.insertAutoCreateTable(data, config.numOfThreadsForInsert, config.frequency); subTableService.insertAutoCreateTable(data, config.numOfThreadsForInsert, config.frequency);
// } else { } else {
// subTableService.insert(data, config.numOfThreadsForInsert, config.frequency); subTableService.insert(data, config.numOfThreadsForInsert, config.frequency);
// } }
/***********************************************/ /***********************************************/
tableCnt += tableSize; tableCnt += tableSize;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册