Skip to content

Remove many N+1 queries with merge requests API

Stan Hu requested to merge sh-optimize-mr-api into master

Identified via ENABLE_BULLET=1 bundle exec rspec spec/requests/api/merge_requests.rb:34

Improves speed of #34159 (closed)

There are still N+1 queries with labels and counts of emoji upvotes and downvotes, but this saves a lot of time.

Edited by Stan Hu

Merge request reports

Loading