foxfirefey (
foxfirefey) wrote in
django_dev2012-02-28 10:04 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
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.