Hey,
Thanks for your prompt reply Tim & luisza14, i have gone through the documentation. From what i have understood:
When we get all objects from the queryset = User.objects.all() it cache the result and it is better to filter it from this result than hitting the db on every subsequent request. while when it does not have desired result it will hit the db and fetch it.
correct me if i am wrong.
Well let say i have 1 million rows, is it advisable to work this same manner as it will be caching all 1million result?