[buddypress-trac] [BuddyPress] #3659: Recently Active widget doesn't scale
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon Oct 10 19:13:26 UTC 2011
#3659: Recently Active widget doesn't scale
---------------------------+-----------------------------
Reporter: mpvanwinkle77 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Core | Version: 1.2.10
Severity: normal | Resolution:
Keywords: needs-patch |
---------------------------+-----------------------------
Changes (by boonebgorges):
* milestone: Awaiting Review => Future Release
Comment:
Thanks for the report.
> perhaps querying just the wp_usermeta table for user_id's and then
populating each one with get_userdata()
That solution would be pretty efficient if you were using the right kind
of persistent object caching, but I think it would be pretty inefficient
if you weren't, since it creates many queries where previously there was
just one. However, that would need some testing, since the queries would
then be of a much simpler sort.
This query is simple enough where we could fairly easily rewrite it to
take advantage of the relatively new WP_User class, which has full
wp_cache support already built in. See #3127 for a broader discussion.
Though in this case, unlike in #3127, we wouldn't need to join against any
BP tables, so it's much more feasible in this case than elsewhere in
BP_Core_User.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3659#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list