[wp-trac] [WordPress Trac] #15458: Lazy-load usermeta into the user object

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 18 22:43:22 UTC 2010


#15458: Lazy-load usermeta into the user object
-------------------------+--------------------------------------------------
 Reporter:  nacin        |       Owner:                
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Performance  |     Version:                
 Severity:  normal       |    Keywords:  3.2-early     
-------------------------+--------------------------------------------------

Comment(by andy):

 Replying to [comment:6 Denis-de-Bernardy]:
 > For the same reason as posts, making dozens of queries for as many users
 is more expensive than making a single one for all users.
 >
 > Are we even loading these things for all queried users in one go? If
 not, agreeing wholly; if so, disagreeing based on the above.

 A new bulk authors query is such a good idea that it deserves its own
 ticket. It dovetails with this ticket in that there is no need to load
 usermeta when all you need is the author's display name.

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


More information about the wp-trac mailing list