This is a combined messytables/xypath issue
We need to be cautious about the amount of memory we're using:
http://faostat.fao.org/Portals/_Faostat/Downloads/zip_files/FoodSupply_Crops_E_Africa_1.zip
a 1.5MB zip (15MB csv)
with
fh = dl.grab(url)
mt, = list(messytables.zip.ZIPTableSet(fh).tables)
xy = xypath.Table.from_messy(mt)
uses around 3 gigabytes of ram.
Given that, in the "upload a spreadsheet" tool, people could upload files this big trivially, we'll need to think about memory consumption.
Top tip: dictionaries are horrific.
Dave.
This is a combined messytables/xypath issue
We need to be cautious about the amount of memory we're using:
http://faostat.fao.org/Portals/_Faostat/Downloads/zip_files/FoodSupply_Crops_E_Africa_1.zip
a 1.5MB zip (15MB csv)
with
uses around 3 gigabytes of ram.
Given that, in the "upload a spreadsheet" tool, people could upload files this big trivially, we'll need to think about memory consumption.
Top tip: dictionaries are horrific.
Dave.