文档文档

显示关于 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_idscolumn_namesmax_cardinalitymax_age_seconds
wind_datawind_distinct[0, 1, 2][country, county, city]10000086400
weatherweather_distinct[0][location]100604800
bitcoinbitcoin_dis[0, 1][code, crypto]500086400
homehome_distinct[0, 1][room, wall]1200015770000

从 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 身份验证令牌

此页内容对您有帮助吗?

感谢您的反馈!


Flux 的未来

Flux 即将进入维护模式。您可以继续像现在这样使用它,而无需对代码进行任何更改。

阅读更多

现已全面上市

InfluxDB 3 Core 和 Enterprise

快速启动。更快扩展。

获取更新

InfluxDB 3 Core 是一个开源、高速、近实时数据引擎,可实时收集和处理数据,并将其持久化到本地磁盘或对象存储。InfluxDB 3 Enterprise 基于 Core 的基础构建,增加了高可用性、读取副本、增强的安全性以及数据压缩,以实现更快的查询和优化的存储。InfluxDB 3 Enterprise 的免费层可供非商业家庭或业余爱好者使用。

有关更多信息,请查看