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

Drop unused preload from PipelineSerializer

parent 549ea1d9
...@@ -41,7 +41,6 @@ class PipelineSerializer < BaseSerializer ...@@ -41,7 +41,6 @@ class PipelineSerializer < BaseSerializer
def preloaded_relations def preloaded_relations
[ [
:cancelable_statuses, :cancelable_statuses,
:latest_statuses_ordered_by_stage,
:retryable_builds, :retryable_builds,
:stages, :stages,
:latest_statuses, :latest_statuses,
......
---
title: Drop unused preload from PipelineSerializer
merge_request: 56988
author:
type: performance
...@@ -202,7 +202,7 @@ RSpec.describe PipelineSerializer do ...@@ -202,7 +202,7 @@ RSpec.describe PipelineSerializer do
# Existing numbers are high and require performance optimization # Existing numbers are high and require performance optimization
# Ongoing issue: # Ongoing issue:
# https://gitlab.com/gitlab-org/gitlab/-/issues/225156 # 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.count).to be_within(2).of(expected_queries)
expect(recorded.cached_count).to eq(0) 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