[wp-trac] [WordPress Trac] #21120: Optimize get_user_by()
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 5 21:51:54 UTC 2012
#21120: Optimize get_user_by()
------------------------------------+------------------------------
Reporter: kurtpayne | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Performance | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------------------
Comment (by scribu):
Replying to [comment:4 kurtpayne]:
> > What we could do is collect all the user ids and call get_users() with
them. This will in turn call cache_users().
>
> Where do we draw the line on this? `wp_is_large_network()` ?
We wouldn't fetch ''all'' the users, only the authors of the posts
currently on display.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21120#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list