[buddypress-trac] [BuddyPress Trac] #5471: Useless Big query

buddypress-trac noreply at wordpress.org
Thu Mar 20 11:01:53 UTC 2014


#5471: Useless Big query
---------------------------+-----------------------------
 Reporter:  elpix          |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  high           |  Milestone:  Awaiting Review
Component:  Notifications  |    Version:  1.9.2
 Severity:  major          |   Keywords:
---------------------------+-----------------------------
 Hi there !

 When I'm not logged in on my website, I look at the sql queries on the
 page and I see :

 {{{
 SELECT *
 FROM wp_bp_notifications
 WHERE component_name
 IN (
 'friends',  'messages',  'activity',  'groups',  'blogs',  'events'
 )
 AND is_new =1
 }}}

 I Think this query is useless, because this kind of query must be use to
 display notifications when the user is logged, but here I'm not logged !

 How to remove that ? It's a very big query and it take 0,3 seconds to load
 on my website ...

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


More information about the buddypress-trac mailing list