foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
foxfirefey ([personal profile] foxfirefey) wrote in [community profile] 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.