From e447815262f2fd0c1ac8584ae8f3a0d4a27a6009 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 3 Mar 2026 20:04:45 -0600 Subject: [PATCH] daily sync: 3 added, 4 modified, 0 deleted (3 edges) --- ...TO--fix-batch-pitchingcardratings-f05df7.md | 13 +++++++++++++ ...O--issue-poller-paper-dynasty-dat-ba7a5d.md | 13 +++++++++++++ ...O--pr-review-paper-dynasty-databa-4d81e7.md | 13 +++++++++++++ ...gs-lookup-in-pitcher-sort-paper-d-e014f5.md | 7 ++++++- ...cardratings-in-pitcher-sorting-fu-d57958.md | 18 +++++++++++++++++- ...-paper-dynasty-database19-success-8e8e32.md | 8 +++++++- ...abase44-batch-fetch-pitchingcardr-a99673.md | 7 ++++++- 7 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--fix-batch-pitchingcardratings-f05df7.md create mode 100644 graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--issue-poller-paper-dynasty-dat-ba7a5d.md create mode 100644 graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--pr-review-paper-dynasty-databa-4d81e7.md diff --git a/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--fix-batch-pitchingcardratings-f05df7.md b/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--fix-batch-pitchingcardratings-f05df7.md new file mode 100644 index 00000000000..c20a56666d5 --- /dev/null +++ b/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--fix-batch-pitchingcardratings-f05df7.md @@ -0,0 +1,13 @@ +--- +id: f05df710-e8a1-422e-897c-d58c02e984e3 +type: RELATED_TO +from_id: d5795833-cc47-4ee7-a03b-8eda906597d5 +from_title: "Fix: None guard for PitchingCardRatings in pitcher sorting functions" +to_id: e014f59b-60ff-4602-91bc-076b3a73f0e8 +to_title: "Fix: batch PitchingCardRatings lookup in pitcher sort (paper-dynasty-database #19)" +strength: 0.77 +created: "2026-03-04T02:04:45.819294+00:00" +updated: "2026-03-04T02:04:45.819294+00:00" +--- + +Auto-edge: Fix: None guard for PitchingCardRatings in pitcher sorting functions → Fix: batch PitchingCardRatings lookup in pitcher sort (paper-dynasty-database #19) diff --git a/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--issue-poller-paper-dynasty-dat-ba7a5d.md b/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--issue-poller-paper-dynasty-dat-ba7a5d.md new file mode 100644 index 00000000000..e6e23d1ef87 --- /dev/null +++ b/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--issue-poller-paper-dynasty-dat-ba7a5d.md @@ -0,0 +1,13 @@ +--- +id: ba7a5d7b-146b-4bd8-b908-04c49e2c9255 +type: RELATED_TO +from_id: d5795833-cc47-4ee7-a03b-8eda906597d5 +from_title: "Fix: None guard for PitchingCardRatings in pitcher sorting functions" +to_id: 8e8e3261-f619-4fa1-b19e-4fe21d5c146b +to_title: "Issue poller: paper-dynasty-database#19 (success)" +strength: 0.82 +created: "2026-03-04T02:04:45.852967+00:00" +updated: "2026-03-04T02:04:45.852967+00:00" +--- + +Auto-edge: Fix: None guard for PitchingCardRatings in pitcher sorting functions → Issue poller: paper-dynasty-database#19 (success) diff --git a/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--pr-review-paper-dynasty-databa-4d81e7.md b/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--pr-review-paper-dynasty-databa-4d81e7.md new file mode 100644 index 00000000000..cacb7d7a82e --- /dev/null +++ b/graph/edges/fix-none-guard-for-pitchingcar--RELATED_TO--pr-review-paper-dynasty-databa-4d81e7.md @@ -0,0 +1,13 @@ +--- +id: 4d81e769-4409-434b-9d17-18b23ed38727 +type: RELATED_TO +from_id: d5795833-cc47-4ee7-a03b-8eda906597d5 +from_title: "Fix: None guard for PitchingCardRatings in pitcher sorting functions" +to_id: a99673ab-2ded-48c5-9563-30df7bf4a465 +to_title: "PR review: paper-dynasty-database#44 — batch-fetch PitchingCardRatings N+1 fix" +strength: 0.73 +created: "2026-03-04T02:04:45.884241+00:00" +updated: "2026-03-04T02:04:45.884241+00:00" +--- + +Auto-edge: Fix: None guard for PitchingCardRatings in pitcher sorting functions → PR review: paper-dynasty-database#44 — batch-fetch PitchingCardRatings N+1 fix diff --git a/graph/fixes/fix-batch-pitchingcardratings-lookup-in-pitcher-sort-paper-d-e014f5.md b/graph/fixes/fix-batch-pitchingcardratings-lookup-in-pitcher-sort-paper-d-e014f5.md index efce2a97e30..f9b6480a5d4 100644 --- a/graph/fixes/fix-batch-pitchingcardratings-lookup-in-pitcher-sort-paper-d-e014f5.md +++ b/graph/fixes/fix-batch-pitchingcardratings-lookup-in-pitcher-sort-paper-d-e014f5.md @@ -6,7 +6,7 @@ tags: [paper-dynasty-database, python, peewee, pandas, performance, fix, n+1-que importance: 0.65 confidence: 0.8 created: "2026-03-03T23:04:16.395675+00:00" -updated: "2026-03-03T23:04:17.048422+00:00" +updated: "2026-03-04T02:04:45.819294+00:00" relations: - target: 6ebf27b5-c1eb-4e4d-b12a-62e7fdbc9406 type: RELATED_TO @@ -23,6 +23,11 @@ relations: direction: outgoing strength: 0.7 edge_id: e496d0d4-b7fb-4c61-8738-2a86da490803 + - target: d5795833-cc47-4ee7-a03b-8eda906597d5 + type: RELATED_TO + direction: incoming + strength: 0.77 + edge_id: f05df710-e8a1-422e-897c-d58c02e984e3 --- ## Problem diff --git a/graph/fixes/fix-none-guard-for-pitchingcardratings-in-pitcher-sorting-fu-d57958.md b/graph/fixes/fix-none-guard-for-pitchingcardratings-in-pitcher-sorting-fu-d57958.md index cc62f080567..0ba855c2d70 100644 --- a/graph/fixes/fix-none-guard-for-pitchingcardratings-in-pitcher-sorting-fu-d57958.md +++ b/graph/fixes/fix-none-guard-for-pitchingcardratings-in-pitcher-sorting-fu-d57958.md @@ -6,7 +6,23 @@ tags: [paper-dynasty-database, python, fastapi, peewee, bug, none-guard, attribu importance: 0.6 confidence: 0.8 created: "2026-03-04T02:04:45.243323+00:00" -updated: "2026-03-04T02:04:45.243323+00:00" +updated: "2026-03-04T02:04:45.884241+00:00" +relations: + - target: e014f59b-60ff-4602-91bc-076b3a73f0e8 + type: RELATED_TO + direction: outgoing + strength: 0.77 + edge_id: f05df710-e8a1-422e-897c-d58c02e984e3 + - target: 8e8e3261-f619-4fa1-b19e-4fe21d5c146b + type: RELATED_TO + direction: outgoing + strength: 0.82 + edge_id: ba7a5d7b-146b-4bd8-b908-04c49e2c9255 + - target: a99673ab-2ded-48c5-9563-30df7bf4a465 + type: RELATED_TO + direction: outgoing + strength: 0.73 + edge_id: 4d81e769-4409-434b-9d17-18b23ed38727 --- ## Problem diff --git a/graph/workflows/issue-poller-paper-dynasty-database19-success-8e8e32.md b/graph/workflows/issue-poller-paper-dynasty-database19-success-8e8e32.md index 613a74df857..c3d4c1e609b 100644 --- a/graph/workflows/issue-poller-paper-dynasty-database19-success-8e8e32.md +++ b/graph/workflows/issue-poller-paper-dynasty-database19-success-8e8e32.md @@ -6,7 +6,13 @@ 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" +updated: "2026-03-04T02:04:45.852967+00:00" +relations: + - target: d5795833-cc47-4ee7-a03b-8eda906597d5 + type: RELATED_TO + direction: incoming + strength: 0.82 + edge_id: ba7a5d7b-146b-4bd8-b908-04c49e2c9255 --- 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 diff --git a/graph/workflows/pr-review-paper-dynasty-database44-batch-fetch-pitchingcardr-a99673.md b/graph/workflows/pr-review-paper-dynasty-database44-batch-fetch-pitchingcardr-a99673.md index 3131ecd47c2..a133e2e6c2b 100644 --- a/graph/workflows/pr-review-paper-dynasty-database44-batch-fetch-pitchingcardr-a99673.md +++ b/graph/workflows/pr-review-paper-dynasty-database44-batch-fetch-pitchingcardr-a99673.md @@ -6,7 +6,7 @@ tags: [pr-reviewer, paper-dynasty-database, python, peewee, pandas, performance, importance: 0.4 confidence: 0.8 created: "2026-03-03T23:17:50.809941+00:00" -updated: "2026-03-03T23:17:51.214127+00:00" +updated: "2026-03-04T02:04:45.884241+00:00" relations: - target: 0fdd32ea-6b6a-4cd0-aa4b-117184e0c81d type: RELATED_TO @@ -23,6 +23,11 @@ relations: direction: outgoing strength: 0.73 edge_id: 157f3b01-d301-46f6-94ca-9ae632c9046d + - target: d5795833-cc47-4ee7-a03b-8eda906597d5 + type: RELATED_TO + direction: incoming + strength: 0.73 + edge_id: 4d81e769-4409-434b-9d17-18b23ed38727 --- ## PR #44 Review: batch-fetch PitchingCardRatings instead of per-row queries