chenwardT / lol_stats2

Website to perform match aggregation and analysis for Riot Games' League of Legends.
2 stars 0 forks source link

Consider employing bulk database operations on league updates #13

Closed chenwardT closed 8 years ago

chenwardT commented 8 years ago

When updating a League object, the entirety of its associated LeagueEntry objects are deleted, and replaced by the parsed response from Riot's API.

Investigate the possibility of using Django's bulk_create, see https://docs.djangoproject.com/en/1.8/ref/models/querysets/#bulk-create

chenwardT commented 8 years ago

Implemented in https://github.com/chenwardT/lol_stats2/commit/40e619a4000c00d125e16593a982390995fa5a33