-
- Downloads
Attempt to delete more duplicate rows in receipts_linearized table. (#14915)
The previous assumption was that the stream_id column was unique (for a room ID, receipt type, user ID tuple), but this turned out to be incorrect. Now find the max stream ID, then map this back to a database-specific row identifier and delete other rows which match the (room ID, receipt type, user ID) tuple, but *not* the row ID.
Showing
- changelog.d/14915.bugfix 1 addition, 0 deletionschangelog.d/14915.bugfix
- synapse/storage/databases/main/receipts.py 26 additions, 8 deletionssynapse/storage/databases/main/receipts.py
- tests/storage/databases/main/test_receipts.py 3 additions, 1 deletiontests/storage/databases/main/test_receipts.py
changelog.d/14915.bugfix
0 → 100644
Please register or sign in to comment