✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Exceeding memory limit on Heroku using Dash App

Hi All,

I’ve built a dash app that uses mapbox choropleth, and reads in a few files for a total of around 200mbs. I end up with R14 and R15 errors before the app even loads.

Does anyone have suggestions on how to address this? I’m reading the files from my github:

The app itself is fairly simple, not sure if maybe reading in chunks would help?

Thanks!

I found the problem, it has to do with using pd.concat on large dataframes. This blows the memory out of the water, if anyone has suggestions please do let me know. It’s two pkl files so I can’t read chunks.