[wp-trac] [WordPress Trac] #10852: improve get_page_children

WordPress Trac noreply at wordpress.org
Sun Feb 22 03:54:55 UTC 2015


#10852: improve get_page_children
------------------------------------+-----------------------------
 Reporter:  hailin                  |       Owner:  westi
     Type:  enhancement             |      Status:  reviewing
 Priority:  normal                  |   Milestone:  Future Release
Component:  Posts, Post Types       |     Version:  2.9
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  performance
------------------------------------+-----------------------------

Comment (by santagada):

 Sorry that was supposed to be the benchmark for the new algorithm, if
 someone can fix that data it would be awesome.

 My code doesn't have any recursion (so the non documented maximum depth of
 100 is gone) and it is much much faster.

 In one admin page of a client with around 8k posts it takes up to 2
 minutes to render using the old code and 9 seconds with the patch. This
 function is called many times in admin to build a hierarchical list on
 screen.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/10852#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list