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

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 16 14:29:07 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 ryan):

 {{{
 WP_Query('posts_per_page=15&cat=-21072,-37613,-4533907');
 }}}

 Generates a query like:

 {{{
 SELECT SQL_CALC_FOUND_ROWS  wp_3508545_posts.* FROM wp_3508545_posts
 WHERE 1=1  AND wp_3508545_posts.ID IN(0, 14, 17, 25
 }}}

 Where the post ID list has 1666871 IDs and the resulting query is 1.2
 million characters long. This causes segfaults.

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


More information about the wp-trac mailing list