Speed up deleting device messages (#16643)
Keeping track of a lower bound of stream ID where we've deleted everything below makes the queries much faster. Otherwise, every time we scan for rows to delete we'd re-scan across all the rows that have previously deleted (until the next table VACUUM).
Showing
- changelog.d/16643.misc 1 addition, 0 deletionschangelog.d/16643.misc
- synapse/handlers/device.py 5 additions, 3 deletionssynapse/handlers/device.py
- synapse/storage/databases/main/deviceinbox.py 81 additions, 25 deletionssynapse/storage/databases/main/deviceinbox.py
- synapse/util/task_scheduler.py 1 addition, 1 deletionsynapse/util/task_scheduler.py
Loading
Please register or sign in to comment