Fix N+1 queries for spam logs index
What does this MR do and why?
The cause for an unhealthy error budget of our group might very well be N+1 queries for the Admin::SpamLogsController#index
action. This MR fixes that.
Issue: https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/182
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Alex Buijs