case: reduce loop count from 10 to 3

This commit is contained in:
Alex Duan 2023-11-07 16:38:26 +08:00
parent c6f4c0124d
commit ecbe5e6051
2 changed files with 2 additions and 4 deletions

View File

@ -133,8 +133,6 @@ class AutoGen:
if batch_size == 1 or (i > 0 and i % batch_size == 0) :
sql = f"insert into {child_name} values {values}"
tdSql.execute(sql)
if batch_size > 40:
tdLog.info(f" insert data i={i}")
values = ""
# end batch

View File

@ -117,12 +117,12 @@ class TDTestCase:
childname= "d"
child_cnt = 2
batch_size = 8000
insert_rows = 200015
insert_rows = 100015
start_ts = 1600000000000
self.autoGen.create_db(self.dbname)
loop = 10
loop = 3
for i in range(loop):
self.autoGen.create_stable(stbname, 4, 10, 4, 8)
self.autoGen.create_child(stbname, childname, child_cnt)