Reduce spec database queries
Description
This reduces the number of database queries from 631 to 197. I've tried to improve this further but it was failing with seed 24662. Feel free to improve this if you have any more ideas.
Reference: https://docs.gitlab.com/ee/development/testing_guide/best_practices.html
Before | After |
---|---|
Edited by Arturo Herrero