跳到主要内容
跳到主要内容

system.asynchronous_inserts

在 ClickHouse Cloud 中查询

该系统表中的数据在 ClickHouse Cloud 的每个节点上本地保存。因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas 函数。有关更多详细信息,请参见 here

包含有关队列中待处理异步插入的信息。

列:

  • query (String) — 查询字符串。
  • database (String) — 表所在数据库的名称。
  • table (String) — 表名称。
  • format (String) — 格式名称。
  • first_update (DateTime64) — 首次插入时间,微秒精度。
  • total_bytes (UInt64) — 队列中等待的总字节数。
  • entries.query_id (Array(String)) - 等待在队列中的插入查询的查询ID数组。
  • entries.bytes (Array(UInt64)) - 等待在队列中的每个插入查询的字节数组。

示例

查询:

结果:

参见