I think calling QuerySetSequence(...).iterator() doesn't perform the nice Django optimizations. It seems to just end up in the same iteration code as normal.
Pretty much, we always seem to call iter() or directly iterate through the QuerySets. This shouldn't be too difficult to implement, it involves touching QuerySetSequence(...).iterator(); QuerySeqeunce.__iter__() and QuerySequence._ordered_iterator.
I think calling
QuerySetSequence(...).iterator()
doesn't perform the nice Django optimizations. It seems to just end up in the same iteration code as normal.Pretty much, we always seem to call
iter()
or directly iterate through theQuerySets
. This shouldn't be too difficult to implement, it involves touchingQuerySetSequence(...).iterator()
;QuerySeqeunce.__iter__()
andQuerySequence._ordered_iterator
.