[wp-trac] [WordPress Trac] #55360: Add limit to query in WP_Tax_Query

WordPress Trac noreply at wordpress.org
Thu Mar 10 00:14:12 UTC 2022


#55360: Add limit to query in WP_Tax_Query
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:  spacedmonkey
     Type:  enhancement   |     Status:  assigned
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 The call to get_terms in WP_Tax_Query, does not currently have a limit
 set. This because some taxonomies are hierarchical and could have nested
 terms. But for none hierarchical taxonomies, a limit can and should be
 set. This limit will improve query performance and will improve likely of
 hitting an existing term query cache.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55360>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list