Opened 11 years ago
Closed 11 years ago
#24245 closed enhancement (fixed)
Convert category__and query into category__in when only one category passed in
Reported by: | batmoo | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Query | Keywords: | has-patch |
Focuses: | Cc: |
Description
If a category__and
query gets only one term passed in, it still builds out the complex query required for the AND
lookup, which can be pretty expensive (#16706).
We should be smarter and automatically convert the query into a category__in
when category__and
only gets passed in one category.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Mo, take a look and see if this patch accomplishes what you want, I think it does