synapse-old/synapse/storage/databases
Patrick Cloke 230a831c73
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.
2023-02-01 15:45:10 -05:00
..
main Attempt to delete more duplicate rows in receipts_linearized table. (#14915) 2023-02-01 15:45:10 -05:00
state Move `StateFilter` to `synapse.types` (#14668) 2022-12-12 16:19:30 +00:00
__init__.py Ensure that `get_datastores().main` is typed (#12070) 2022-02-25 10:20:40 +00:00