在 kusto table 上使用物化视图

Using materialized view on a kusto table

我有一个场景,其中 table 每 3 分钟从不同来源接收 20k+ 条消息。我想获取每个唯一源发送的最新数据,源可以是一个 id。我不能写这样的查询。

FactResources | summarize arg_max(Timestamp, *) by SubscriptionId, ResourceId 
  • 是的,集群的 CPU 会受到影响,因为物化会消耗 CPU(就像集群上的所有其他操作 运行ning 一样)。您可以使用 .show commands-and-queries 命令估计具体化过程消耗的资源量,如记录 here.
  • 无法保证具体化的延迟。只要 delta (what is delta?) and as long as the cluster has available capacity to run materialization. The latency, referred to as materialized view age, depends on the ingestion pattern, the data volume and the available resources in the cluster. You can check the materialized view age by running .show materialized-view and checking the MaterializedTo value. See more in performance considerations and monitoring.
  • 中有记录,物化就会 运行
  • 您可以像查询 table (ViewName) 或使用 materialized-view() 函数一样查询视图。参见 materialized views queries