With the right indexes and lateral joins/cross applies you can make the aggregate you need when you query instead of when you write.
With the right indexes and lateral joins/cross applies you can make the aggregate you need when you query instead of when you write.