forked from MirrorHub/synapse
Merge pull request #2304 from matrix-org/erikj/users_share_fix
Fix up indices for users_who_share_rooms
This commit is contained in:
commit
036f439f53
1 changed files with 2 additions and 1 deletions
|
@ -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 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
|
-- Make sure that we popualte the table initially
|
||||||
|
|
Loading…
Reference in a new issue