fix: eliminate N+1 queries in get_custom_commands (#26) #51

Open
cal wants to merge 1 commits from ai/major-domo-database-26 into next-release

1 Commits

Author SHA1 Message Date
Cal Corum
ef9cd3d4a5 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>
2026-03-05 16:03:28 -06:00