Skip to content

refactor(users): optimize role loading in get_all_users#42

Merged
Lcwei-0708 merged 1 commit into
mainfrom
refactor/users-optimize-role-loading
May 26, 2026
Merged

refactor(users): optimize role loading in get_all_users#42
Lcwei-0708 merged 1 commit into
mainfrom
refactor/users-optimize-role-loading

Conversation

@Lcwei-0708

Copy link
Copy Markdown
Owner
  • Replace per-user role queries with batch role loading to avoid N+1 queries
  • Introduce _get_user_roles_map helper for efficient role mapping

- Replace per-user role queries with batch role loading to avoid N+1 queries
- Introduce _get_user_roles_map helper for efficient role mapping
@Lcwei-0708 Lcwei-0708 merged commit 3f1d1dd into main May 26, 2026
1 check passed
@Lcwei-0708 Lcwei-0708 deleted the refactor/users-optimize-role-loading branch May 26, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant