如何优化 Apache IoTDB 中的`explain select`类型的查询结果?

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

我想询问 Apache IoTDB 中的某种查询。当我尝试执行

explain select ReportLoopType, PriorityLevel, CasStatisticsType from root.pideval_loop_cycle where ProjectID = 3277489752686800 and (time = 1700539200000) order by time desc align by device
查询时,结果没有数据,但需要六七秒才能完成这次执行。我想知道我可以做些什么来优化这个执行速度?

database time-series apache-iotdb iotdb
1个回答
0
投票

Apache IoTDB

explain
查询慢的原因一般是因为查询的设备较多。如果你想提高这个效率,你可以在查询语句中的
from
后面指定几个精确的设备。如果您提到为什么
select
查询很慢,您可以升级到最新的1.3.0版本的IoTDB并重试。这种查询在最新版本中已经专门优化了。

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