foxfirefey (
foxfirefey) wrote in
django_dev2012-02-28 10:04 am
Entry tags:
Tip of my day: db.reset_queries()
Are you writing a script to update tons of stuff in your Django database?
Then you are going to need to from django import db and use db.reset_queries() on appropriate occasions to prevent your script from taking up ALL the memories.
Then you are going to need to from django import db and use db.reset_queries() on appropriate occasions to prevent your script from taking up ALL the memories.