joe*_*yth 9 kql azure-data-explorer
就性能而言,是以下查询
ResourceEvents
| where ResourceType == "Foo" and EventType == "Bar"
Run Code Online (Sandbox Code Playgroud)
几乎与
ResourceEvents
| where ResourceType == "Foo"
| where EventType == "Bar"
Run Code Online (Sandbox Code Playgroud)
或者记录是否按顺序过滤,执行两次搜索而不是组合一次?
添加到 Yoni 的答案中,您可以通过查看查询计划自行检查。
.show queryplan <|
StormEvents
| where State == "TEXAS" and EventType == "Flood"
.show queryplan <|
StormEvents
| where State == "TEXAS"
| where EventType == "Flood"
Run Code Online (Sandbox Code Playgroud)
这些计划是等效的。
| 归档时间: |
|
| 查看次数: |
5476 次 |
| 最近记录: |