taosdata / TDengine

High-performance, scalable time-series database designed for Industrial IoT (IIoT) scenarios

Home Page:https://tdengine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

关于查询问题

Carson-yy opened this issue · 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三台集群

补充 explain 信息看看?

explain

image