[buddypress-trac] [BuddyPress] #3496: Faster query for sitewide activity option

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Aug 19 13:25:25 UTC 2011


#3496: Faster query for sitewide activity option
-------------------------+-----------------------------
 Reporter:  finzend      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Activity     |    Version:  1.2.9
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 In buddypress/bp-activity/bp-activity-classes.php on line 116 I've changed
 the following code:

 old:
 {{{
 $where_conditions['hidden_sql'] = "a.hide_sitewide = 0";
 }}}

 new:
 {{{
 $where_conditions['hidden_sql'] = "a.hide_sitewide != 1";
 }}}

 This makes the query a lot faster! With the same result I think?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3496>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list