Tip of my day: db.reset_queries()
Feb. 28th, 2012 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)
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.