显示关于 Distinct Value Caches 的信息
使用 influxdb3 show system table
命令 从 distinct_caches
系统表中查询并输出 Distinct Value Cache 信息。
influxdb3 show system \
--database DATABASE_NAME \
--token AUTH_TOKEN \
table distinct_caches
这将返回一个类似于下表的表
表 | 名称 | column_ids | column_names | max_cardinality | max_age_seconds |
---|---|---|---|---|---|
wind_data | wind_distinct | [0, 1, 2] | [country, county, city] | 100000 | 86400 |
weather | weather_distinct | [0] | [location] | 100 | 604800 |
bitcoin | bitcoin_dis | [0, 1] | [code, crypto] | 5000 | 86400 |
home | home_distinct | [0, 1] | [room, wall] | 12000 | 15770000 |
从 distinct_caches 系统表中查询特定列
使用 --select
选项从 distinct_caches
系统表中查询特定列。提供要返回的列的逗号分隔列表
influxdb3 show system \
--database DATABASE_NAME \
--token AUTH_TOKEN \
table distinct_caches \
--select name,column_names,max_age_seconds
排序 distinct_caches 系统表输出
使用 --order-by
选项按特定列对 distinct_caches
系统表中的数据进行排序。提供要排序的列的逗号分隔列表
influxdb3 show system \
--database DATABASE_NAME \
--token AUTH_TOKEN \
table distinct_caches \
--order-by max_cardinality,max_age_seconds
结果根据提供的列按升序排序。
在以上示例中,替换以下内容
DATABASE_NAME
:要从中查询系统数据的数据库名称AUTH_TOKEN
:您的 InfluxDB 3 Core 身份验证令牌
此页内容对您有帮助吗?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一份子!我们欢迎并鼓励您提供关于 InfluxDB 3 Core 和本文档的反馈和错误报告。要寻求支持,请使用以下资源
拥有年度或支持合同的客户 可以联系 InfluxData 支持。