Skip to content

get_organisations_and_services_for_user: use selectinload loading#4844

Merged
risicle merged 1 commit into
mainfrom
ris-user-orgs-services-selectinload
May 11, 2026
Merged

get_organisations_and_services_for_user: use selectinload loading#4844
risicle merged 1 commit into
mainfrom
ris-user-orgs-services-selectinload

Conversation

@risicle
Copy link
Copy Markdown
Member

@risicle risicle commented May 8, 2026

This should avoid us fetching the cartesian product of the number of organisations the user's in, the number of services those organisations have, and the number of services the user's directly in - which can get quite big (50k+ rows) for some users.

Expecting this to make the worst case scenario for this view significantly faster.

this should avoid us fetching the cartesian product of the
number of organisations the user's in, the number of services
those organisations have, and the number of services the user's
directly in - which can get quite big (50k+) for some users.

expecting this to make the worst case scenario for this view
significantly faster.
@risicle risicle marked this pull request as ready for review May 8, 2026 14:48
@risicle risicle requested a review from quis May 8, 2026 14:49
@risicle risicle merged commit 3d1292b into main May 11, 2026
10 checks passed
@risicle risicle deleted the ris-user-orgs-services-selectinload branch May 11, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants