Speed up spec/services/todo_service_spec.rb
What does this MR do?
Locally:
Before
- Total events: 54403
- Finished in 3 minutes 0 seconds
After
- Total events: 16152
- Finished in 1 minute 0 seconds
According to RSpec stats:
https://gitlab-org.gitlab.io/rspec_profiling_stats/
When | Time | Events |
---|---|---|
Before | 143.80 | 44086 |
After | 48.06 | 12616 |
Related issue: https://gitlab.com/gitlab-org/plan/-/issues/145
Queries saved: 38251
Edited by John Hope