[wp-trac] [WordPress Trac] #18536: Improve performance of WP_Query core

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 3 23:48:46 UTC 2012


#18536: Improve performance of WP_Query core
-------------------------------------------+------------------
 Reporter:  cheald                         |       Owner:
     Type:  task (blessed)                 |      Status:  new
 Priority:  normal                         |   Milestone:  3.4
Component:  Performance                    |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  early has-patch needs-testing  |
-------------------------------------------+------------------

Comment (by scribu):

 [attachment:18536.6.diff]:

 * check if the query was altered in any way through the 'posts_request'
 filter before expanding ids
 * introduce 'posts_request_ids' filter
 * use _prime_post_cache() in update_post_thumbnail_template().

 I don't have an elegant solution for preventing the useless {{{SELECT ID
 WHERE ID IN (...)}}} query.

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


More information about the wp-trac mailing list