sc3 / cookcountyjail

A Django app that tracks the population of Cook County Jail over time and summarizes trends.
http://cookcountyjail.recoveredfactory.net/api/1.0/?format=json
Other
31 stars 23 forks source link

On low memory machines cannot load dumped database #455

Open nwinklareth opened 9 years ago

nwinklareth commented 9 years ago

The loaddata command loads the entire JSON file into memory before writing out its contents to the database. Low memory machines cannot process this even though if the json was streamed in they could.

There is a streaming json module for Python iJson which I will try.