taosdata/TDengine

group by times out when querying large amounts of data from a single table

Open

#28.744 geöffnet am 12. Nov. 2024

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C (5.002 Forks)batch import
help wanted

Repository-Metriken

Stars
 (24.849 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 1h) (4 gemergte PRs in 30 T)

Beschreibung

问题描述:单张主表1.7亿左右数据,针对单个字段使用group by分组查询,结合last_row获取最新值,查询出现超时;如果加上时间(ts)过滤条件,1月查询耗时1.3秒左右; 服务器资源:内存、cpu很充裕 docker镜像版本3.3.3.0

Contributor Guide