TDengine
TDengine copied to clipboard
关于查询问题
语句如下:
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