[buddypress-trac] [BuddyPress Trac] #5950: Editing Pages / Posts in wp-admin creates 50, 000 SQL Queries

buddypress-trac noreply at wordpress.org
Sun Oct 12 11:07:06 UTC 2014


#5950: Editing Pages / Posts in wp-admin creates 50,000 SQL Queries
------------------------------------+------------------
 Reporter:  wcvendors               |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  high                    |   Milestone:  2.2
Component:  Activity                |     Version:  2.1
 Severity:  critical                |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------
Changes (by imath):

 * keywords:  dev-feedback => dev-feedback has-patch


Comment:

 {{{bp_core_get_user_displayname()}}} is generating the extra queries in
 {{{bp_friends_prime_mentions_results()}}}

 5950.patch suggests to avoid these extra queries by using
 {{{$user->display_name}}} if it exists, else it defaults to user_nicename.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5950#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list