Improve requests/api/project_snippets_spec performance
What does this MR do?
Queries saved: 9695
In this MR we improve the performance of the spec/requests/api/project_snippets_spec.rb
spec. In local, the time of this spec is 2 minutes and 45.9 seconds and the number of queries is 17828.
After the changes, the new time is 1 minute and 36 seconds and the number of queries 8133. Meaning that we improved the time by 1 minute and 12 seconds and the number of queries by 9695.
Does this MR meet the acceptance criteria?
Conformity
-
Code review guidelines -
Merge request performance guidelines -
Style guides -
Separation of EE specific content
Related to #228706 (closed)
Edited by Francisco Javier López