https://gerrit.wikimedia.org/r/#/c/159413/ - This update adds a script to delete any Notifications that are older than the most recent 2,000.
Up until now, they were stored indefinitely, meaning that some users have many thousands of read Notifications adding up in the database. 2,000 was chosen, because it is the number of Notifications that the "mark all as read" button effects.