fix: eliminate N+1 queries in get_custom_commands (#26)
All checks were successful
Build Docker Image / build (pull_request) Successful in 2m1s
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:
parent
ddf5f77da4
commit
ef9cd3d4a5