I have two options to query my data, which one is preferred from performance perspective?
My event records has unique session Id, device name, and more details about the device how sends the event.
I want to count the events in a session. and get the device info for each count.
Option 1: add all device columns to the GroupExpression
Events | summerize count() by sessionId, deviceName, deviceMac, ...
Option 2: since the sessionId is unique for all devices, i can take any device name from an sessionId group.
Events | summerize count(), deviceName=any(deviceName), deviceMac=any(deviceMac), ... by sessionId
There are performance differences between the two options?
I have tried this on my data set(~1M records) and i didn't find any major difference in execution time. Thank you