Skip to content

v2.4.11

Latest

Choose a tag to compare

@ernestdefoe ernestdefoe released this 06 Jul 15:26

Performance & conventions audit batch — no behaviour change, all query hygiene.

Fixed

  • Post-header primary-group chip no longer N+1s. sgPrimaryGroup moved into an injected UserResourceFields class and its relations are eager-loaded on the User/Post/Discussion endpoints (mirroring core's user.groups), so a 20-author page no longer fires ~60 correlated lookups.
  • Group directory teasers batch-load. recentDiscussions reads an eager-loaded relation instead of one LIMIT query per group card.
  • Member list canRemove/canMute memoized. The per-(actor, group) moderator lookup runs once per page instead of 40 correlated subqueries; endpoint policies are unchanged.
  • Poll voting eager-loads the discussion's group (one fewer SELECT).
  • Migrations 000003/000020 now document why the raw closure form is intentional.

Update: composer update ernestdefoe/social-groups then php flarum cache:clear.