XESmartTarget icon indicating copy to clipboard operation
XESmartTarget copied to clipboard

Feature request - Add aggregate "LAST" to GroupedTableAppenderResponse

Open zikato opened this issue 2 years ago • 1 comments

My use case is that I want to capture a change in plans on readable secondaries. Currently, Query Store doesn't work there (otherwise, I would use it).

I would use one of the several XE events to capture the actual query plan (for example query_plan_profile

and group the same plans by query_plan_hash_signed action. Since I already detect differences in a plan via the query_plan_hash_signed, I don't need to compare the actual XML file (not even sure XML comparison is permitted) and just want to save its last value.

zikato avatar May 02 '22 08:05 zikato

That's an interesting feature. I'll see what I can do. Currently, aggregates are calculated using DataTable.Compute, which doesn't support LAST. It doesn't look like an impossible deal though. Let me have a look

spaghettidba avatar May 02 '22 08:05 spaghettidba