Avoid loading group relationship for media if there are no group related tokens

Created on 16 August 2024, 3 months ago
Updated 9 September 2024, 2 months ago

Problem/Motivation

Noticed during profiling that groupmedia_tokens() always loads the relationship for the media.

This should be improved to check if there are any group/groups tokens being asked for, for example by doing the two isset() checks + findWithPrefix() calls early and returning if nothing is there.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇨🇭Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024