summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-04-05 13:19:24 +0200
committerSean McGivern <sean@gitlab.com>2018-04-09 11:58:06 +0100
commit20fdbbe86a6cffbf467f08d50a0d8ef0f5c87f50 (patch)
tree771a649785183c6d355483538a69a66824ad320c /Gemfile
parent63ab7c0f009001b99f6e7d7a7f21dadde1e6b969 (diff)
downloadgitlab-ce-20fdbbe86a6cffbf467f08d50a0d8ef0f5c87f50.tar.gz
Use Goldiloader for handling N+1 queries
Goldiloader (https://github.com/salsify/goldiloader) can eager load associations automatically. This removes the need for adding "includes" calls in a variety of different places. This also comes with the added benefit of not having to eager load data if it's not used.
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 7f5b1f1d3ef..647138cd90f 100644
--- a/Gemfile
+++ b/Gemfile
@@ -441,3 +441,5 @@ gem 'grape_logging', '~> 1.7'
# Asset synchronization
gem 'asset_sync', '~> 2.2.0'
+
+gem 'goldiloader', '~> 2.0'