Fix N+1 in spec

What does this MR do and why?

  • Fixes N+1 by stubbing a method that was creating a record (which would only happen once in a real life scenario)
  • Better fix is to use a factory to create the record but this fixes master: #583818

References

#583818

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading