--- id: 8e8e3261-f619-4fa1-b19e-4fe21d5c146b type: workflow title: "Issue poller: paper-dynasty-database#19 (success)" tags: [issue-poller, paper-dynasty-database, automation] importance: 0.5 confidence: 0.8 created: "2026-03-03T23:04:23.418465+00:00" updated: "2026-03-03T23:04:23.418465+00:00" --- Attempted paper-dynasty-database#19 — Replace per-row PitchingCardRatings lookup with batched fetch in pitcher sort. Status: success. Summary: Replaced per-row PitchingCardRatings get_or_none calls with a single batched SELECT + dict lookup in both sort_pitchers and sort_starters, reducing 2N queries to 1.. PR: https://git.manticorum.com/cal/paper-dynasty-database/pulls/44. Cost: $0.9319824999999999