提交 25444ef7 编写于 作者: S slguan

add test program

上级 85420cf3
...@@ -45,7 +45,7 @@ int32_t randomData[MAX_RANDOM_POINTS]; ...@@ -45,7 +45,7 @@ int32_t randomData[MAX_RANDOM_POINTS];
int64_t rowsPerTable = 10000; int64_t rowsPerTable = 10000;
int64_t pointsPerTable = 1; int64_t pointsPerTable = 1;
int64_t numOfThreads = 1; int64_t numOfThreads = 1;
int64_t numOfTablesPerThread = 1; int64_t numOfTablesPerThread = 200;
char dbName[32] = "db"; char dbName[32] = "db";
char stableName[64] = "st"; char stableName[64] = "st";
int32_t cache = 16384; int32_t cache = 16384;
...@@ -219,11 +219,11 @@ void *syncTest(void *param) { ...@@ -219,11 +219,11 @@ void *syncTest(void *param) {
} }
len += sprintf(sql + len, ")"); len += sprintf(sql + len, ")");
if (len > maxBytes) { if (len > maxBytes) {
// if (taos_query(con, qstr)) { if (taos_query(con, qstr)) {
// dError("thread:%d, failed to insert table:%s%ld row:%ld, reason:%s", pInfo->threadIndex, pInfo->stableName, dError("thread:%d, failed to insert table:%s%ld row:%ld, reason:%s", pInfo->threadIndex, pInfo->stableName,
// table, row, taos_errstr(con)); table, row, taos_errstr(con));
// } }
dPrint("%s ", qstr);
// "insert into" // "insert into"
len = sprintf(sql, "%s", inserStr); len = sprintf(sql, "%s", inserStr);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册