[ 
https://issues.apache.org/jira/browse/IOTDB-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17628420#comment-17628420
 ] 

Xingyu Liu commented on IOTDB-4473:
-----------------------------------

2022 Nov 04
h1. 关于batch

跟进了之前的问题,batch的自定义的确会影响性能。我之前以为是使用go原始的数组影响了插入性能,导致插入速度只有4000~4200rows/sec,于是试着模仿其他数据库中利用byte.Buffer的实现。结果没想到在某些情况下更慢了,更精简的“优化”反而带来负提升。

于是我转而关注iotdb-client-go的性能,发现什么预处理都不做,直接插入相同规模的数据,在方法不变(使用执行SQL语句的方式插入)的情况下,写入性能为4500rows/sec。相比之下tsbs中现有实现的方式仅损耗了6%~10%左右的性能,这些时间可能被tsbs用于处理datasource等。

所以这样看来目前对batch的实现,没有本质上的性能缺陷。

> Support TSBS Timeseries Benchmark
> ---------------------------------
>
>                 Key: IOTDB-4473
>                 URL: https://issues.apache.org/jira/browse/IOTDB-4473
>             Project: Apache IoTDB
>          Issue Type: New Feature
>            Reporter: Julian Feinauer
>            Assignee: Xingyu Liu
>            Priority: Major
>
> The tsbs Benchmark was initially created by InfluxDB and is now maintained by 
> timescale db and compares many state of the art timeseries databases: 
> [https://github.com/timescale/tsbs]
>  
> IMHO we should add support for IoTDB



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to