Commit b17f8920 authored by nmilojevic1's avatar nmilojevic1

Add changelog for preloading project

parent c02a79a9
---
title: Preload project, user and group to reuse objects
merge_request: 21853
author:
type: performance
......@@ -131,6 +131,8 @@ module Gitlab
end
def preload_keys(object, references, value)
return object unless value
references.each do |key|
attribute = key.delete_suffix('_id').to_sym
next unless object.respond_to?(key) && object.respond_to?(attribute)
......
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