1. pombredanne
  2. django-anonymizer2

Commits

Luke Plant  committed eb52af3

Used QuerySet.iterator() to improve memory use.

  • Participants
  • Parent commits 92c018d
  • Branches default

Comments (0)

Files changed (1)

File anonymizer/base.py

View file
        setattr(obj, attname, replacement)
 
    def run(self):
-       for obj in self.get_query_set():
+       for obj in self.get_query_set().iterator():
            retval = self.alter_object(obj)
            if retval is not False:
             obj.save()