Skip to content

Reduce spec database queries

Arturo Herrero requested to merge improve-rspec-database-queries into master

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
BEFORE_ee_spec_lib_elastic_latest_issue_class_proxy_spec AFTER_ee_spec_lib_elastic_latest_issue_class_proxy_spec
Edited by Arturo Herrero

Merge request reports

Loading