[DONT MERGE] Hotfix/sangshuduo/td 5872 taosdemo stmt improve (#7733)
* [TD-5872]<fix>: taosdemo stmt improve. * refactor stmt functions. * [TD-5872]<fix>: taosdemo stmt csv perf improve. * rand func back to early impl. * fix windows/mac compile error. * fix empty tag sample. * [TD-5873]<test>add stmt’performance taosdemo testcase * add data_type enum and stmt_batch framework. * use data type enum and fix test case limit/offset. Co-authored-by: Shuduo Sang <sdsang@taosdata.com> Co-authored-by: tomchon <haoran920c@163.com>
This commit is contained in:
parent
8cfea7d4e4
commit
26821d99f3
File diff suppressed because it is too large
Load Diff
|
@ -5,7 +5,7 @@
|
|||
"port": 6030,
|
||||
"user": "root",
|
||||
"password": "taosdata",
|
||||
"thread_count": 4,
|
||||
"thread_count": 1,
|
||||
"thread_count_create_tbl": 4,
|
||||
"result_file": "./insert_res.txt",
|
||||
"confirm_parameter_prompt": "no",
|
||||
|
|
|
@ -26,7 +26,7 @@ class TDTestCase:
|
|||
tdLog.debug("start to execute %s" % __file__)
|
||||
tdSql.init(conn.cursor(), logSql)
|
||||
|
||||
self.numberOfTables = 10
|
||||
self.numberOfTables = 8
|
||||
self.numberOfRecords = 1000000
|
||||
|
||||
def getBuildPath(self):
|
||||
|
@ -86,7 +86,7 @@ class TDTestCase:
|
|||
while True:
|
||||
print("query started")
|
||||
try:
|
||||
tdSql.query("select * from test.t9")
|
||||
tdSql.query("select * from test.t7")
|
||||
except Exception as e:
|
||||
tdLog.info("select * test failed")
|
||||
time.sleep(2)
|
||||
|
@ -100,8 +100,8 @@ class TDTestCase:
|
|||
|
||||
print("alter table test.meters add column c10 int")
|
||||
tdSql.execute("alter table test.meters add column c10 int")
|
||||
print("insert into test.t9 values (now, 1, 2, 3, 4, 0)")
|
||||
tdSql.execute("insert into test.t9 values (now, 1, 2, 3, 4, 0)")
|
||||
print("insert into test.t7 values (now, 1, 2, 3, 4, 0)")
|
||||
tdSql.execute("insert into test.t7 values (now, 1, 2, 3, 4, 0)")
|
||||
|
||||
def run(self):
|
||||
tdSql.prepare()
|
||||
|
|
Loading…
Reference in New Issue