diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-02 16:09:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 16:09:15 +0100 |
commit | 22a6ffdf91c61340a3e43cdde6050dd072bfbfe4 (patch) | |
tree | fbb9ec14a27ab195645b161dedce66323f9dd40f | |
parent | Merge pull request #6148 from matrix-org/erikj/find_next_generated (diff) | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/fix_room_l... (diff) | |
download | synapse-22a6ffdf91c61340a3e43cdde6050dd072bfbfe4.tar.xz |
Merge pull request #6153 from matrix-org/erikj/fix_room_list_non_federatable
Fix not showing non-federatable rooms to remote room list queries
-rw-r--r-- | changelog.d/6153.misc | 1 | ||||
-rw-r--r-- | synapse/storage/room.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/changelog.d/6153.misc b/changelog.d/6153.misc new file mode 100644 index 0000000000..dfee73c28f --- /dev/null +++ b/changelog.d/6153.misc @@ -0,0 +1 @@ +Improve performance of the public room list directory. diff --git a/synapse/storage/room.py b/synapse/storage/room.py index 9b7e31583c..615c0d3f65 100644 --- a/synapse/storage/room.py +++ b/synapse/storage/room.py @@ -174,6 +174,9 @@ class RoomWorkerStore(SQLBaseStore): query_args += [last_joined_members, last_joined_members, last_room_id] + if ignore_non_federatable: + where_clauses.append("is_federatable") + if search_filter and search_filter.get("generic_search_term", None): search_term = "%" + search_filter["generic_search_term"] + "%" |