Skip to content

Commit

Permalink
Kusto-phase3: update release note for summarize optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kashwy committed Nov 1, 2023
1 parent aa5ea0d commit ee4bd0f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Parsers/Kusto/KQL_ReleaseNote.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
```
print lookup_contains('test_rocksDB',1);
```
- Optimizing the 'summarize' operator.

KQL:
```
events_dist
| project original_time, ip
| where unixtime_milliseconds_todatetime(original_time) > ago(1h)
| summarize ip_count = count(*) by ip
```
Optimal SQL:
```
SELECT
ip,
count(*) AS ip_count
FROM events_dist
WHERE kql_todatetime(fromUnixTimestamp64Milli(original_time, 'UTC')) > (now64(9, 'UTC') + (-1 * toIntervalNanosecond(3600000000000)))
GROUP BY ip
```


# July, 2023
## Features
Expand Down

0 comments on commit ee4bd0f

Please sign in to comment.