taosdata/TDengine

execution time increases when using a thread pool for concurrent queries but remains normal when using a for loop

Open

#28,947 创建于 2024年11月27日

在 GitHub 查看
 (2 评论) (0 反应) (1 负责人)C (5,002 fork)batch import
help wantedquestion

仓库指标

Star
 (24,849 star)
PR 合并指标
 (平均合并 1天 1小时) (30 天内合并 4 个 PR)

描述

  • server版本:3.3.3.0 ,3节点

  • jdbc驱动版本:3.4.0,驱动类型:com.taosdata.jdbc.ws.WebSocketDriver

  • nginx 配置截图: image

  • 数据库连接池截图,最小100个连接: 1732699526(1)

  • 线程池配置截图,核心线程100个: image

  • 代码截图: image

  • 线程池执行耗时: image image image

  • for 循环执行耗时: image

单次大概有84个查询,多次对比查询均如此,线程池检索的耗时会逐渐增加

贡献者指南