为什么Apache IoTDB中单表的count查询结果无法返回?

问题描述 投票:0回答:1

为什么Apache IoTDB中的

count
命令结果无法返回?我现在使用的是IoTDB 0.13版本,我需要查询单表中的数据。表中数据规模约为2亿条。我添加了
Time
作为
where
条件,当
count
设置为一小时、半小时或10分钟时,
Time
结果没有返回。整个sql语句就是
Select count(station_id) from root.fz4 .pv.s_5.** where Time >= 2023-08-31 07:00:00.000000 AND Time <= 2023-08-31 07:10:00.000000 group by level=1
。我想知道为什么这个查询很慢?

count apache-iotdb iotdb
1个回答
0
投票
Apache IoTDB中

count

查询的速度与sql语句设置的时间范围无关。当你在不同设备上进行这种查询时,需要先查询出所有时间序列,因此,如果存储的数据量很大,效率可能会受到影响。

© www.soinside.com 2019 - 2024. All rights reserved.