Commit 059ceb8c authored by Dmytro Zaporozhets (DZ)'s avatar Dmytro Zaporozhets (DZ)

Merge branch '321788-drop-unused-preload' into 'master'

Drop unused preload from PipelineSerializer

See merge request gitlab-org/gitlab!56988
parents 9c05f84a 09a3f41c
......@@ -41,7 +41,6 @@ class PipelineSerializer < BaseSerializer
def preloaded_relations
[
:cancelable_statuses,
:latest_statuses_ordered_by_stage,
:retryable_builds,
:stages,
:latest_statuses,
......
---
title: Drop unused preload from PipelineSerializer
merge_request: 56988
author:
type: performance
......@@ -202,7 +202,7 @@ RSpec.describe PipelineSerializer do
# Existing numbers are high and require performance optimization
# Ongoing issue:
# https://gitlab.com/gitlab-org/gitlab/-/issues/225156
expected_queries = Gitlab.ee? ? 85 : 76
expected_queries = Gitlab.ee? ? 82 : 76
expect(recorded.count).to be_within(2).of(expected_queries)
expect(recorded.cached_count).to eq(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment