I would like to evaluate a queryset once, i.e. fetch the objects to local memory, and then proceed with performing various filter
commands on the fetched objects.
Of course I could:
filter
operations later on.So.. Is it possible to force a queryset evaluation while keeping the result as a queryset object?
How about just doing a len(myqueryset)
.
or just doing an conditional check can also force evaluate it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With