How is this different from QuerySet.all() ? Can you give a code example of
what you'd imagine this API doing?

On Sun, 20 Dec 2020 at 17:05, Leon Albrecht <leon2002...@gmail.com> wrote:

> Hey everyone,
>
> I'm running a website, that uses a search bar, and to parse said search
> bar, I "and" together multiple queries in a loop,
> but to start of I need a Identity-Query, that does nothing and return
> everything.
> There are solutions to create one, but they aren't free and do not look
> good or intuitive.
>
> So I suggest adding a Identity-Query object, which gets discarded by the
> optimizer during the SQL generation stage.
>
> Leon
>
> PS:
> Just using multiple filters wont work, because they always use the
> original data set and unify all results at the end.
>
> PPS:
> An issue that occurred me is that "and"-ing together queries may cause the
> results to be duplicate.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/65ce7659-9101-4d60-89be-28b076f97f13n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/65ce7659-9101-4d60-89be-28b076f97f13n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM12pSS6TOSxgf35%3D-zopoa08jNL13ahrNVYTwoZYsZ_bw%40mail.gmail.com.

Reply via email to