[wp-trac] [WordPress Trac] #5407: Improve wp_list_authors efficiency

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 1 12:49:14 GMT 2007

#5407: Improve wp_list_authors efficiency
 Reporter:  Bobcat        |       Owner:  anonymous            
     Type:  enhancement   |      Status:  new                  
 Priority:  normal        |   Milestone:  2.4                  
Component:  Optimization  |     Version:  2.3.1                
 Severity:  normal        |    Keywords:  has-patch 2nd-opinion
 wp_list_authors() makes multiple queries per registered user.  For
 example, if a blog has 50 registered users, wp_list_authors() will make
 over 100 queries, even if there are only a few users who can write posts.

 Alexander Concha developed the attached patch which does it all with only
 one query total (two if "show_fullname" is enabled).  However, he
 questions if this change belongs in the WP core.  I think it does because
 it's such a vast improvement over the current extremely inefficient code.

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

More information about the wp-trac mailing list