Replace per-player get_or_none() calls in get_bratings() with two bulk SELECT queries before the position loop, keyed by player_id and card+hand. This reduces DB round trips from O(3N) to O(2) for all lineup difficulties. 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 | ||