Skip to content

Fix N+1 queries for Changelog generation

Vasilii Iakliushin requested to merge 340941_fix_n1_issue into master

What does this MR do and why?

Contributes to #340941

Problem

Screenshot_2022-06-02_at_17.41.25 Screenshot_2022-06-02_at_17.44.26

#contributor? check verifies authors' permissions one by one. This triggers N requests for each commit author.

Solution

Preload commits authors' permissions to generate an optimized query.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports

Loading