Skip to content

Fix N+1 problems in Groups API

What does this MR do and why?

Contributes to #443311 (closed)

Problem

We have a N+1 problems for several relations in Groups API. That leads to unnecessary queries and has a negative impact on the performance.

Solution

Preload relations to improve the peformance.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-02-27_at_11.15.29 Screenshot_2024-02-27_at_11.14.43

How to set up and validate locally

  1. Use performance bar to fetch http://gdk.test:3000/api/v4/groups
  2. Check results
Edited by Vasilii Iakliushin

Merge request reports