Hello,
-- Do advice me on:
queryset = User.objects.all()user = get_object_or_404(pk=id)
> Is it better to call the list in queryset and then apply filter or directly use .filter() in the first step.
> If so, when we call all the object frequently does it cache and from cache we do filter or does it db everytime.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d1de3cd-af5b-4fb5-b4df-5efe114f9e4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment