提交 be320e80 编写于 作者: S shenglian zhou

schemaless: add batch log to identify performance hotspot

上级 5bc1a121
......@@ -892,12 +892,13 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols
size_t batchSize = MIN(maxBatchSize, rows);
SArray* batchBind = taosArrayInit(batchSize, POINTER_BYTES);
int32_t code = TSDB_CODE_SUCCESS;
for (int i=0; i<rows;) {
for (int i = 0; i < rows;) {
int j = i;
for (; j < i + batchSize && j<rows; ++j) {
taosArrayPush(batchBind, taosArrayGet(rowsBind, j));
}
if (j>=i) {
if (j > i) {
tscDebug("SML:0x%"PRIx64" insert child table batch from line %d to line %d", info->id, i, j - 1);
code = doInsertChildTableWithStmt(taos, sql, cTableName, batchBind, info);
if (code != 0) {
taosArrayDestroy(batchBind);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册