Recompute groups on each query