Opened 13 years ago
Closed 13 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Mo, take a look and see if this patch accomplishes what you want, I think it does