[buddypress-trac] [BuddyPress] #4060: Improve performance of BP_Core_User::get_users()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Aug 29 13:55:36 UTC 2012


#4060: Improve performance of BP_Core_User::get_users()
-------------------------------------------------+-------------------------
 Reporter:  shanebp                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  highest                              |   Milestone:  1.7
Component:  Members                              |     Version:  1.2.9
 Severity:  critical                             |  Resolution:
 Keywords:  2nd-opinion has-patch needs-testing  |
  dev-feedback                                   |
-------------------------------------------------+-------------------------

Comment (by boonebgorges):

 DennisSmolek - Thanks for jumping in here. The best way to test would be
 to install trunk + this patch in a test environment (with a mirror of your
 live site's data) and do some simply mysql profiling. Maybe the easiest
 way to do this is to install the Debug Bar plugin, and then put
 `define('SAVEQUERIES',true);` in your wp-config file. Then, on each
 pageload, you'll be able to see which queries were run, and how long they
 took. Use `add_filter( 'bp_use_legacy_user_query', '__return_true' );` as
 a toggle to turn on/off the new query class, so you can get side-by-side
 results.

 I wouldn't recommend putting this on your live site at the moment, as it's
 not been fully tested.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4060#comment:32>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list