mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 18:20:07 +00:00
Merge pull request #1103 from matrix-org/markjh/comment_on_create_index
Add comments to existing schema deltas that used "CREATE INDEX" directly
This commit is contained in:
commit
0baf498bd1
6 changed files with 24 additions and 0 deletions
|
@ -13,6 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Using CREATE INDEX directly is deprecated in favour of using background
|
||||||
|
* update see synapse/storage/schema/delta/33/access_tokens_device_index.sql
|
||||||
|
* and synapse/storage/registration.py for an example using
|
||||||
|
* "access_tokens_device_index" **/
|
||||||
CREATE INDEX receipts_linearized_room_stream ON receipts_linearized(
|
CREATE INDEX receipts_linearized_room_stream ON receipts_linearized(
|
||||||
room_id, stream_id
|
room_id, stream_id
|
||||||
);
|
);
|
||||||
|
|
|
@ -13,4 +13,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Using CREATE INDEX directly is deprecated in favour of using background
|
||||||
|
* update see synapse/storage/schema/delta/33/access_tokens_device_index.sql
|
||||||
|
* and synapse/storage/registration.py for an example using
|
||||||
|
* "access_tokens_device_index" **/
|
||||||
CREATE INDEX events_room_stream on events(room_id, stream_ordering);
|
CREATE INDEX events_room_stream on events(room_id, stream_ordering);
|
||||||
|
|
|
@ -13,4 +13,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Using CREATE INDEX directly is deprecated in favour of using background
|
||||||
|
* update see synapse/storage/schema/delta/33/access_tokens_device_index.sql
|
||||||
|
* and synapse/storage/registration.py for an example using
|
||||||
|
* "access_tokens_device_index" **/
|
||||||
CREATE INDEX public_room_index on rooms(is_public);
|
CREATE INDEX public_room_index on rooms(is_public);
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Using CREATE INDEX directly is deprecated in favour of using background
|
||||||
|
* update see synapse/storage/schema/delta/33/access_tokens_device_index.sql
|
||||||
|
* and synapse/storage/registration.py for an example using
|
||||||
|
* "access_tokens_device_index" **/
|
||||||
CREATE INDEX receipts_linearized_user ON receipts_linearized(
|
CREATE INDEX receipts_linearized_user ON receipts_linearized(
|
||||||
user_id
|
user_id
|
||||||
);
|
);
|
||||||
|
|
|
@ -26,6 +26,10 @@ UPDATE event_push_actions SET stream_ordering = (
|
||||||
|
|
||||||
UPDATE event_push_actions SET notif = 1, highlight = 0;
|
UPDATE event_push_actions SET notif = 1, highlight = 0;
|
||||||
|
|
||||||
|
/** Using CREATE INDEX directly is deprecated in favour of using background
|
||||||
|
* update see synapse/storage/schema/delta/33/access_tokens_device_index.sql
|
||||||
|
* and synapse/storage/registration.py for an example using
|
||||||
|
* "access_tokens_device_index" **/
|
||||||
CREATE INDEX event_push_actions_rm_tokens on event_push_actions(
|
CREATE INDEX event_push_actions_rm_tokens on event_push_actions(
|
||||||
user_id, room_id, topological_ordering, stream_ordering
|
user_id, room_id, topological_ordering, stream_ordering
|
||||||
);
|
);
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Using CREATE INDEX directly is deprecated in favour of using background
|
||||||
|
* update see synapse/storage/schema/delta/33/access_tokens_device_index.sql
|
||||||
|
* and synapse/storage/registration.py for an example using
|
||||||
|
* "access_tokens_device_index" **/
|
||||||
CREATE INDEX event_push_actions_stream_ordering on event_push_actions(
|
CREATE INDEX event_push_actions_stream_ordering on event_push_actions(
|
||||||
stream_ordering, user_id
|
stream_ordering, user_id
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue