[Django]-Memory usage with Django + SQLite3

3👍

Silly me, this was addressed in the Django FAQ.

Needed to clear the DB query cache while in DEBUG mode.

from django import db 
db.reset_queries()
👤Greg

1👍

I think a select * from mapDenormalize and loading the result into memory will always be a bad idea. My advise is – spread script into chunks. Use LIMIT to get data in portions.

Get first portion, work with it, close to cursor, and then get the next portion.

Leave a comment