-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Clobber old device list stream entries #1963
Conversation
synapse/storage/deviceinbox.py
Outdated
"device_lists_stream_idx", | ||
index_name="device_lists_stream_user_id", | ||
table="device_lists_stream", | ||
columns=["user_id", "device_id"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Umm, What happened to the (stream_id, user_id)
index?
Should the new index be called device_lists_stream_user_id_device_id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, I got confused after copy pasting...
synapse/storage/devices.py
Outdated
self.register_background_index_update( | ||
"device_inbox_stream_index", | ||
index_name="device_inbox_stream_id_user_id", | ||
table="device_inbox", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't this in the device_inbox file anymore?
*/ | ||
|
||
INSERT into background_updates (update_name, progress_json) | ||
VALUES ('device_lists_stream_idx', '{}'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is calling this idx
or index
more consistent with what came before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a mix
@NegativeMjark PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes in synapse v0.19.3-rc1 (2017-03-08) =========================================== Features: * Add some administration functionalities. Thanks to morteza-araby! (PR #1784) Changes: * Reduce database table sizes (PR #1873, #1916, #1923, #1963) * Update contrib/ to not use syutil. Thanks to andrewshadura! (PR #1907) * Don't fetch current state when sending an event in common case (PR #1955) Bug fixes: * Fix synapse_port_db failure. Thanks to Pneumaticat! (PR #1904) * Fix caching to not cache error responses (PR #1913) * Fix APIs to make kick & ban reasons work (PR #1917) * Fix bugs in the /keys/changes api (PR #1921) * Fix bug where users couldn't forget rooms they were banned from (PR #1922) * Fix issue with long language values in pushers API (PR #1925) * Fix a race in transaction queue (PR #1930) * Fix dynamic thumbnailing to preserve aspect ratio. Thanks to jkolo! (PR #1945) * Fix device list update to not constantly resync (PR #1964) * Fix potential for huge memory usage when getting device that have changed (PR #1969)
No description provided.