fix: eliminate N+1 queries in get_custom_commands (#26)
All checks were successful
Build Docker Image / build (pull_request) Successful in 2m1s

Expand the JOIN SELECT to include all creator fields
(created_at, total_commands, active_commands) and build the
CustomCommandCreatorModel directly from joined row data instead of
issuing a separate SELECT per command. Reduces 26 queries to 2 for
a full 25-command page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-03-05 16:03:28 -06:00
parent ddf5f77da4
commit ef9cd3d4a5

File diff suppressed because it is too large Load Diff