this has some performance impact when the group is loaded, possibly
Description
Description
Event Timeline
Comment Actions
I've dug into what is happening here - the first 25 groups are resolved to get a count. After the cleanup this feels fairly manageable performance-wise so I've just done a defensive PR to try to protect us from any worsening of this later
https://github.com/civicrm/civicrm-core/pull/11011