Skip to content
Snippets Groups Projects

perf: Don't load user from DB where not necessary

Merged Administrator requested to merge es/less-user-queries into main

Created by: eseliger

In a couple of places, we used CurrentUser, which reaches out to the DB to get the entire user record. However, we only ever needed the user ID, which we already validated in the context, so we can just use the actor package. It saves a DB request :)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading