summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-06-26 15:11:39 +0100
committerGitHub <noreply@github.com>2017-06-26 15:11:39 +0100
commit036f439f533d723949b087da8bc5c8d5772c4c08 (patch)
tree4ee83ae4e1219a35eb79d907244b241ab9f122fd
parentMerge pull request #2301 from xwiki-labs/push-redact-content (diff)
parentFix up indices for users_who_share_rooms (diff)
downloadsynapse-036f439f533d723949b087da8bc5c8d5772c4c08.tar.xz
Merge pull request #2304 from matrix-org/erikj/users_share_fix
Fix up indices for users_who_share_rooms
-rw-r--r--synapse/storage/schema/delta/43/user_share.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/43/user_share.sql b/synapse/storage/schema/delta/43/user_share.sql
index f552b6eb7b..4501d90cbb 100644
--- a/synapse/storage/schema/delta/43/user_share.sql
+++ b/synapse/storage/schema/delta/43/user_share.sql
@@ -25,7 +25,8 @@ CREATE TABLE users_who_share_rooms (
 
 
 CREATE UNIQUE INDEX users_who_share_rooms_u_idx ON users_who_share_rooms(user_id, other_user_id);
-CREATE INDEX users_who_share_rooms_r_idx ON users_who_share_rooms(room_id, user_id);
+CREATE INDEX users_who_share_rooms_r_idx ON users_who_share_rooms(room_id);
+CREATE INDEX users_who_share_rooms_o_idx ON users_who_share_rooms(other_user_id);
 
 
 -- Make sure that we popualte the table initially