Remove User cross-join from user_management.rake
What does this MR do and why?
Refactor and remove the cross-join in the query for users in user_management.rake
- Old query: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/20437/commands/66828
- New query: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/20437/commands/66868
Context: I extracted this out of !126559 (merged) since this isn't really related and makes things easier to review.
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.
Related to #417455 (closed)
Edited by Heinrich Lee Yu