QuestionQ65

VerifiedMonitor and optimize an analytics solution

You have a KQL database that contains two tables named Stream and Reference. Stream contains streaming data in the following format.

Scenario Image

Reference contains reference data in the following format.

Scenario Image

Both tables contain millions of rows.

You have the following KQL queryset.

Scenario Image

You need to reduce how long it takes to run the KQL queryset.

Solution: Move the filter to line 02.

Does this achieve the goal?

Explanation

Filtering Stream by Temperature >= 10 before the inner join reduces the rows supplied to the join while preserving the result, because Temperature comes from Stream and the predicate does not rely on columns created by the join. Kusto guidance recommends placing filters immediately after table references to reduce the amount of data processed.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!