mpope9 / nba-sql

:basketball: An application to build an NBA database backed by MySQL, Postgres, or SQLite
Apache License 2.0
177 stars 22 forks source link

Fixing duplicate row error -- PGTT and Player Season #81

Closed mpope9 closed 2 years ago

mpope9 commented 2 years ago

A reproduction of this is loading multiple seasons at once for the PGTT table.

The PR removes the row cache. Seems it needs to be blown away between multiple seasons being loaded. Also two minor optimizations of converting the season string to an int outside of the inner loop.