Replace per-player/card Paperdex.select().where() calls with a single batched query grouped by player_id. Eliminates N+1 queries in: - players list endpoint (get_players, with inc_dex flag) - players by team endpoint - cards list endpoint (also materializes query to avoid double count()) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| routers_v2 | ||
| __init__.py | ||
| card_creation.py | ||
| db_engine.py | ||
| db_helpers.py | ||
| dependencies.py | ||
| main.py | ||
| player_scouting.py | ||