Investigate query limit spec failures related to merge requests page
There specs were failing due to query limit exceeding the threshold value (100) while loading the MR page - https://gitlab.com/gitlab-org/gitlab/-/issues/542123 - https://gitlab.com/gitlab-org/gitlab/-/issues/519818 - https://gitlab.com/gitlab-org/gitlab/-/issues/543572 - https://gitlab.com/gitlab-org/gitlab/-/issues/539114 Taking a sample of the failures shows that most of the queries were related to checking feature flags (https://gitlab.com/gitlab-org/gitlab/-/issues/542123#note_2522373151). As a part of this issue we want to identify the reason for the increase in the queries and fix them.
issue