diff options
author | Erik Johnston <erik@matrix.org> | 2017-03-01 15:56:30 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-03-01 15:56:30 +0000 |
commit | d766343668e63a7572dcfe571d38ea3e143f3c1c (patch) | |
tree | 0ba6880b76fcb0e485f5a11dbc40de6d1052620e /synapse/storage/deviceinbox.py | |
parent | Clobber old device list stream entries (diff) | |
download | synapse-d766343668e63a7572dcfe571d38ea3e143f3c1c.tar.xz |
Add index to device_lists_stream
Diffstat (limited to 'synapse/storage/deviceinbox.py')
-rw-r--r-- | synapse/storage/deviceinbox.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/deviceinbox.py b/synapse/storage/deviceinbox.py index bde3b5cbbc..1951de0ce1 100644 --- a/synapse/storage/deviceinbox.py +++ b/synapse/storage/deviceinbox.py @@ -31,10 +31,10 @@ class DeviceInboxStore(BackgroundUpdateStore): super(DeviceInboxStore, self).__init__(hs) self.register_background_index_update( - "device_inbox_stream_index", - index_name="device_inbox_stream_id_user_id", - table="device_inbox", - columns=["stream_id", "user_id"], + "device_lists_stream_idx", + index_name="device_lists_stream_user_id", + table="device_lists_stream", + columns=["user_id", "device_id"], ) self.register_background_update_handler( |