Major performance issue when viewing the Inbox
-
One major issue with the viewing the Inbox is that it’s checking if each message thread has been read or not. This is for BuddyPress 1.1.3
This could become a huge performance issue if a message has tens/hundreds of threads because the code hits the database to check if each thread has been read by the user or not.
The issue occurs in function get_current_threads_for_user()
for ( $i = 0; $i < count($thread_ids); $i++ ) {
$threads[$i] = new BP_Messages_Thread( $thread_ids[$i]->thread_id, false, $box );
BP_Messages_Thread->populate() and then this checks if the the thread has been read or not $this->unread_count = $this->get_unread();
- The topic ‘Major performance issue when viewing the Inbox’ is closed to new replies.