请问有没有什么方法能够查询某一天有数据的所有设备 #3929
-
假如我有几万个设备,想查询某一天有数据的设备(比如查询2020-01-01这一天有数据的所有设备) |
Beta Was this translation helpful? Give feedback.
Answered by
SteveYurongSu
Sep 10, 2021
Replies: 1 comment
-
目前可以通过下面的步骤实现:
select count(measurement) from root.storage_group.*.*.* where time>2020-01-01T00:00:00 and time < 2020-01-02T00:00:00 这个过程中,您可能还会用到路径层级分组聚合,可参考:https://iotdb.apache.org/zh/UserGuide/Master/IoTDB-SQL-Language/DML-Data-Manipulation-Language.html#%E8%B7%AF%E5%BE%84%E5%B1%82%E7%BA%A7%E5%88%86%E7%BB%84%E8%81%9A%E5%90%88
另外,您在查询过程中可能会遇到 此时,您只需要改一下 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SteveYurongSu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前可以通过下面的步骤实现:
这个过程中,您可能还会用到路径层级分组聚合,可参考:https://iotdb.apache.org/zh/UserGuide/Master/IoTDB-SQL-Language/DML-Data-Manipulation-Language.html#%E8%B7%AF%E5%BE%84%E5%B1%82%E7%BA%A7%E5%88%86%E7%BB%84%E8%81%9A%E5%90%88
另外,您在查询过程中可能会遇到
此时,您只需要改一下
iotdb-engine.propeties
配置文件里面的max_deduplicated_path_num
然后执行LOAD CONFIGURATION
或者重启系统即可。