[buddypress-trac] [BuddyPress Trac] #8426: Update queries when new message notifications mark as read

buddypress-trac noreply at wordpress.org
Fri Jan 15 22:32:23 UTC 2021


#8426: Update queries when new message notifications mark as read
-------------------------+-----------------------------
 Reporter:  oztaser      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Messages     |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Every single message page view triggers an update queries for mark the
 `new_message` notifications even if there are no unread `new_message`
 notifications. The worse part is it runs the queries as much as the total
 number of recipients times the number of messages.

 To  reproduce the problem;
 * Enable MySQL query logs
 * Create a thread and send some messages
 * Refresh the message view and look at query logs

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


More information about the buddypress-trac mailing list