Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16280

Poor inefficient SQL on reading the notifications table

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.2.8
    • None
    • None

      In phpbb/notification/method folder there is the Board.php file.

      There is a public function in it called get_notified_users that reads the Notifications table.

      If the site admin chooses to not have Notifications removed from their forum, then the Notifications table will constantly increase. 

      The SQL in this public function appears to be inefficient as the Notifications table doesn't include the column 'item_parent_id' as an index. Its possible that other columns may need to be indexed.

            Unassigned Unassigned
            chanlon1 chanlon1
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: