Skip to content

Fix N+1 queries for spam logs index

Alex Buijs requested to merge fix-n+1-queries-for-spam-logs into master

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.

Edited by Alex Buijs

Merge request reports

Loading