Skip to:
Content

BuddyPress.org

Changes between Version 2 and Version 3 of Ticket #7569, comment 3


Ignore:
Timestamp:
07/13/2017 06:03:56 PM (4 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7569, comment 3

    v2 v3  
    1313I guess what would be better is to introduce a bulk read / unread method for the Notifications component so we can just mark a bunch of messages in bulk with one DB query.  Currently, we have to do a loop through a message thread and then mark each mesasge one at a time.
    1414
    15 Edit: `BP_Notification_Notification:mark_all_for_user()` seems like it can work for bulk operations.  We might want to switch to that instead.
     15Edit: `BP_Notification_Notification::mark_all_for_user()` seems like it can handle bulk operations in one DB query.  We might want to switch to that instead.