[wp-trac] [WordPress Trac] #14254: update_meta_cache fails; query too large?

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 9 19:49:23 UTC 2010

#14254: update_meta_cache fails; query too large?
 Reporter:  newpixel      |       Owner:                               
     Type:  defect (bug)  |      Status:  new                          
 Priority:  normal        |   Milestone:  Awaiting Review              
Component:  General       |     Version:  2.9.2                        
 Severity:  normal        |    Keywords:  update meta cache query posts
 In the file meta.php, around line 183 in the 'update_meta_cache()'
 function, it tries to do a query but I noticed this can fail (ie. crash
 wordpress) if there are too many post id's in the query.

 The function is being called from query_posts(), with 'posts_per_page' set
 to -1.

 An example query that crashed it:

 SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN

 Maybe there is some limit associated with queries of this type internal to
 wordpress, as this query works fine in phpMySql.

 Apologies if this is already reported or irrelevant in 3.0!

Ticket URL: <http://core.trac.wordpress.org/ticket/14254>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list