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

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 12 22:58:45 UTC 2012


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

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 In 3.3 the $posts array in WP_Query can contain a post object with the
 ancestors property set. This is because get_post_status() is working on an
 object (reference) and that object gets the ancestors property set.

 I think that for 3.4 we should remove "->ID", see
 http://wordpress.org/support/topic/nest-page-ancestors-in-34-r3. There are
 still fewer queries run on a child page in 3.4 than 3.3 even with it
 removed. Then we can re-add it for 3.5 with lazy loading of ancestors.

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


More information about the wp-trac mailing list