OK, so the way shot_chart_detail is loaded can be simplified, potentially. Right now we fetch all shots for each player + team combo into a temp table. We then insert from the temp table into the main shot_chart_detail if the games exist. Instead, it'd be useful to try and fetch from the shotchartdetail API just for the games in the season. By also passing the GameID parameter.
The downside is that this could generate more requests and result in worse performance.
OK, so the way
shot_chart_detail
is loaded can be simplified, potentially. Right now we fetch all shots for each player + team combo into a temp table. We then insert from the temp table into the mainshot_chart_detail
if the games exist. Instead, it'd be useful to try and fetch from the shotchartdetail API just for the games in the season. By also passing the GameID parameter.The downside is that this could generate more requests and result in worse performance.