Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit c9f11d0

Browse files
authored
Add missing index on users_in_public_rooms. (#5894)
1 parent 119aa31 commit c9f11d0

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

changelog.d/5894.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add missing index on users_in_public_rooms to improve the performance of directory queries.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* Copyright 2019 Matrix.org Foundation CIC
2+
*
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
16+
-- this was apparently forgotten when the table was created back in delta 53.
17+
CREATE INDEX users_in_public_rooms_r_idx ON users_in_public_rooms(room_id);

0 commit comments

Comments
 (0)