Commit 09a3f41c authored by Matthias Kaeppler's avatar Matthias Kaeppler

Drop unused preload from PipelineSerializer

parent 549ea1d9
......@@ -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