diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/TaosDemoApplication.java b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/TaosDemoApplication.java index 63584dbab48bef7d708f8601bcbba4a8df187d15..601956131fe382ee9517315626c1f941f9f94137 100644 --- a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/TaosDemoApplication.java +++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/TaosDemoApplication.java @@ -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."); diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/JdbcTaosdemoConfig.java b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/JdbcTaosdemoConfig.java index 5803896abba77087eaa417d47bfc44e32173fff2..650eff9945921fd184e3a5d2ab3f629884a765f3 100644 --- a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/JdbcTaosdemoConfig.java +++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/JdbcTaosdemoConfig.java @@ -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;