[wp-trac] [WordPress Trac] #14796: start_post_rel_link() makes 3 DB queries; too much for what it offers

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 5 05:58:42 UTC 2010


#14796: start_post_rel_link() makes 3 DB queries; too much for what it offers
--------------------------+-------------------------------------------------
 Reporter:  demetris      |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Performance   |     Version:  3.0.1          
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------

Comment(by demetris):

 Thanks, dd32!

 As far as I can tell, r15701 brings a huge improvement:

 {{{start_post_rel_link}}} now takes 1 query.  (It took 3 before.)

 {{{adjacent_posts_rel_link_wp_head}}} for posts of type ''page'' now takes
 up to 4 queries.  (It took up to 9 before.)

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


More information about the wp-trac mailing list