If the result is a queryset, can't you just call list(queryset) and it will evaluate early, and then it will iterator the result?
I suppose it depends if you actually want to stream the data out to the caller, but if you are okay with using all() then it seems fine to just using list().
If the result is a queryset, can't you just call list(queryset) and it will evaluate early, and then it will iterator the result?
I suppose it depends if you actually want to stream the data out to the caller, but if you are okay with using all() then it seems fine to just using list().