taosdata/TDengine

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

Open

#28,947 opened on Nov 27, 2024

View on GitHub
 (2 comments) (0 reactions) (1 assignee)C (24,849 stars) (5,002 forks)batch import
help wantedquestion

Description

  • 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个查询,多次对比查询均如此,线程池检索的耗时会逐渐增加

Contributor guide