[Answer]-Django filter on ordered table memory usage

1👍

No it wont. When you are going to iterate over the the queryset, then Django will start loading each element of the queryset into memory and instantiate it one at a time.

If you are concerned about memory usage you’d better go for Queryset.iterator() or retrieve only the fields you are interested in using only.

Leave a comment