@misha470 you could technically write a custom aggregator that does this, but I believe the performance would be the same as query->group-by