TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

performance issue between 2.x and 3.x

Open bkcxiaop opened this issue 3 years ago • 3 comments

6cb5cf7a1a921056819dda02fd74cd1 相同得机器上,部署再docker上。查询性能相差10倍,3.X数据越多查询时间越长。

bkcxiaop avatar Oct 27 '22 02:10 bkcxiaop

3.X再创建数据库时也增加了cachemodel ‘both’关键字。 6f58c91a95261d82a95984a70b8a54a

bkcxiaop avatar Oct 27 '22 02:10 bkcxiaop

we are sorry to make u feel about this. TDengine 3.0 database is still in tuning performance stage.and it will be finished before Dec .

Thanks for your feedback

yu285 avatar Oct 28 '22 03:10 yu285

we can use 3.0.1.6 to do some test, we have done some tuning query on this version

yu285 avatar Nov 09 '22 08:11 yu285

你好,感觉3.0.2.2的版本并没有处理好,可能是我的表结构跟你们的不一样导致的。我使用你们的测试工具写入1000个点(子表)10000W数据感觉你们的很性能效果正常。我的表结构写到这个量级1000个点(子表)10000W后明显的不如你们的。我的表结构如下: create database if not exists database CACHEMODEL 'both'; create table if not exists database.dataTable (ts timestamp, tagValue double) tags (tagName nchar(30),description nchar(50),unit nchar(50)); 我尝试把description 跟unit 拿掉后,性能跟你们的差不多。我想知道这个是啥原因(2.6的版本依然正常,3.0.2.2的这个表结构解释不行),希望你们使用我这种表结构试试。

759085503 avatar Jan 06 '23 05:01 759085503

不好意思,好像账号登录的有点问题,我就是【bkcxiaop】博主。

759085503 avatar Jan 06 '23 05:01 759085503

image image image image

bkcxiaop avatar Jan 06 '23 06:01 bkcxiaop

唯一的区别就是表结构不一样,在3.X下面我的表结构数据就不能存多。存多了就慢。而2.6跟3.X的表结构完全一样,2.6就不存咋这个性能问题

bkcxiaop avatar Jan 06 '23 06:01 bkcxiaop

image

bkcxiaop avatar Jan 06 '23 06:01 bkcxiaop

如果数据以insert形式更新过多,就会导致这种情况。

yu285 avatar Jan 06 '23 08:01 yu285

是的,谢谢。已处理完毕

bkcxiaop avatar Jan 06 '23 08:01 bkcxiaop