[wp-trac] [WordPress Trac] #15458: Lazy-load usermeta into the user object
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 30 21:08:08 UTC 2011
#15458: Lazy-load usermeta into the user object
----------------------------------------+------------------
Reporter: nacin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.3
Component: Performance | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+------------------
Comment (by ryan):
The amount of data stored in the users group in memcached for a sample
multisite user was reduced from 22.31K to 0.47K. Multiply that by
millions of users for a very nice savings. On users.php with 17 users,
the number of trips to the users cache went from ~422 to ~400. (Numbers
include local cache fetches, not just memcached trips.) The number of
trips to the user_meta cache increased sharply from ~13 to ~464. That is
to be expected since we're not duplicating user meta in the users cache
any more and must fetch meta separately. The overall cache query time is
roughly the same, however. Gets from the users cache are many times faster
now that the cache is much smaller.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15458#comment:54>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list