Remove many N+1 queries with merge requests API
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