I develop a django application with Postgres. On my local host where I develop the app, I use ./manage.py run to launch my app and it works successfully even with queries that produces huge output. But on production I faced with the issue that huge queries crashed with "MemoryError" on coping operations from data from database to my app. On production ngnix with uwsgi used. To fix this I set for uwsgi worker a memory limit set:
But this didn't help. Could anybody please recommend what to do with this issue and wht it occurs?