Re: QuerySet.iterator together with prefetch_related because of chunk_size

2018-10-15 Thread tobias . kroenke
Thank you for your feedback. I would like to answer some statements to either convince you or make it more clear, where my idea stems from: The fundamental reason why iterator() cannot be used with > prefetch_related() is that the latter requires a set of model instance to > be materialized to

QuerySet.iterator together with prefetch_related because of chunk_size

2018-10-11 Thread tobias . kroenke
Hi everyone! The docs (https://docs.djangoproject.com/en/2.1/ref/models/querysets/#iterator) state that the use of iterator() causes previous prefetch_related() calls to be ignored > since these two optimizations do not make sense together. I am wondering, if this is still true with the int