I have a django model which has a load of relatively small fields and then one kinda huge one. Let's say something like this:
class MyModel(models.Model):
thing = models.ForeignKey('Thing')
egg = models.TextField()
spoon = models.TextField()
race = models.FloatField()
big_field = models.TextField()
big_field is only needed in a small number of functions, however the model is used all over the place. How can I avoid big_field being stored in memory? Is this what lazy evaluation is doing? Say I iterated over a QuerySet extracting egg each time, would this cause big_field to be stored in memory also?
Thanks