--- 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-04T02:18:09.753128+00:00" relations: - target: d5795833-cc47-4ee7-a03b-8eda906597d5 type: RELATED_TO direction: incoming strength: 0.82 edge_id: ba7a5d7b-146b-4bd8-b908-04c49e2c9255 - target: 38e7784c-1250-4123-9a20-1a75ad1e37d8 type: RELATED_TO direction: incoming strength: 0.81 edge_id: c3995ff3-033d-4411-818d-9ef3932e21a5 --- 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