[wp-trac] [WordPress Trac] #12891: Advanced multi-taxonomy WP_Query()s

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 16 18:03:06 UTC 2010


#12891: Advanced multi-taxonomy WP_Query()s
----------------------------+-----------------------------------------------
 Reporter:  markjaquith     |       Owner:  markjaquith    
     Type:  task (blessed)  |      Status:  assigned       
 Priority:  normal          |   Milestone:  3.1            
Component:  Query           |     Version:  3.0.1          
 Severity:  normal          |    Keywords:  ongoing-project
----------------------------+-----------------------------------------------

Comment(by scribu):

 Replying to [comment:95 ryan]:
 > That query is unlimited despite the original request being for only 15
 posts.  This won't scale.

 We can't limit the IN() to 15 ids because that would give incorrect
 results. The first 15 matched IDs might not match the outer query, like
 post_type etc.

 I see 3.0 was using GROUP BY to handle intersections so I think we can use
 that in get_tax_sql() too.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12891#comment:107>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list