TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

关于查询问题

Open Carson-yy opened this issue 1 year ago • 2 comments

语句如下:

st_point_data_commerce 这个是超表,device_sn是TAG列,data_no 是一个普通列,查询要长达5秒,当日超表的子表和数据量挺大!

select last_row(*) from st_point_data_commerce where device_sn = 'xxxxxxx' and ts <= '2024-05-09 13:25:00' and data_no = '04'

条件带普通列都查询很慢,配置上4核8G三台集群

Carson-yy avatar May 09 '24 13:05 Carson-yy

补充 explain 信息看看?

yinheli avatar May 09 '24 14:05 yinheli

explain

image

Carson-yy avatar May 10 '24 03:05 Carson-yy