Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
ce825c8b
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ce825c8b
编写于
10月 26, 2022
作者:
Z
zhihaop
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: batch write is not enabled by default
上级
574bfd96
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
packaging/cfg/taos.cfg
packaging/cfg/taos.cfg
+6
-6
src/client/src/tscAsync.c
src/client/src/tscAsync.c
+1
-1
src/common/src/tglobal.c
src/common/src/tglobal.c
+1
-1
未找到文件。
packaging/cfg/taos.cfg
浏览文件 @
ce825c8b
...
@@ -311,11 +311,11 @@ keepColumnName 1
...
@@ -311,11 +311,11 @@ keepColumnName 1
# unit Hour. Latency of data migration
# unit Hour. Latency of data migration
# keepTimeOffset 0
# keepTimeOffset 0
#
enable thread local
write batching.
#
taosc write batch size, maximum 4096, suggested value 64 ~ 512, default 0, 0 means disable
write batching.
# writeBatch
ThreadLocal
0
# writeBatch
Size
0
# taosc write batch
size, maximum 4096, 0 means disabled write batching. suggesting value: 64 ~ 512
.
# taosc write batch
timeout in milliseconds, maximum 2048, suggested value 2 ~ 100, default 10
.
# writeBatch
Size 96
# writeBatch
Timeout 10
# taosc write batch timeout in milliseconds, maximum 2048. suggesting value: 2 ~ 100.
# using thread local write batching. this option is not available when writeBatchSize = 0.:::
# writeBatchTimeout 10
# writeBatchThreadLocal 0
\ No newline at end of file
\ No newline at end of file
src/client/src/tscAsync.c
浏览文件 @
ce825c8b
...
@@ -411,7 +411,7 @@ void doAsyncQuery(STscObj* pObj, SSqlObj* pSql, __async_cb_func_t fp, void* para
...
@@ -411,7 +411,7 @@ void doAsyncQuery(STscObj* pObj, SSqlObj* pSql, __async_cb_func_t fp, void* para
// TODO return the correct error code to client in tscQueueAsyncError
// TODO return the correct error code to client in tscQueueAsyncError
void
taos_query_a
(
TAOS
*
taos
,
const
char
*
sqlstr
,
__async_cb_func_t
fp
,
void
*
param
)
{
void
taos_query_a
(
TAOS
*
taos
,
const
char
*
sqlstr
,
__async_cb_func_t
fp
,
void
*
param
)
{
taos_query_ra
(
taos
,
sqlstr
,
fp
,
param
,
t
rue
);
taos_query_ra
(
taos
,
sqlstr
,
fp
,
param
,
t
sWriteBatchSize
>
0
);
}
}
TAOS_RES
*
taos_query_ra
(
TAOS
*
taos
,
const
char
*
sqlstr
,
__async_cb_func_t
fp
,
void
*
param
,
bool
enableBatch
)
{
TAOS_RES
*
taos_query_ra
(
TAOS
*
taos
,
const
char
*
sqlstr
,
__async_cb_func_t
fp
,
void
*
param
,
bool
enableBatch
)
{
...
...
src/common/src/tglobal.c
浏览文件 @
ce825c8b
...
@@ -129,7 +129,7 @@ int64_t tsMaxRetentWindow = 24 * 3600L; // maximum time window tolerance
...
@@ -129,7 +129,7 @@ int64_t tsMaxRetentWindow = 24 * 3600L; // maximum time window tolerance
// The tsc async write batching feature (using ABWD).
// The tsc async write batching feature (using ABWD).
bool
tsWriteBatchThreadLocal
=
false
;
// if thread local enable, each thread will allocate a dispatcher.
bool
tsWriteBatchThreadLocal
=
false
;
// if thread local enable, each thread will allocate a dispatcher.
int32_t
tsWriteBatchSize
=
96
;
// suggest: 64 - 512
, 0 means disable batching.
int32_t
tsWriteBatchSize
=
0
;
// suggest: 64 - 512, default 0
, 0 means disable batching.
int32_t
tsWriteBatchTimeout
=
10
;
// suggest: 2 - 100 (unit: milliseconds)
int32_t
tsWriteBatchTimeout
=
10
;
// suggest: 2 - 100 (unit: milliseconds)
// the maximum allowed query buffer size during query processing for each data node.
// the maximum allowed query buffer size during query processing for each data node.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录