summary refs log tree commit diff
path: root/changelog.d/13972.bugfix
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-09-30 13:15:32 +0100
committerGitHub <noreply@github.com>2022-09-30 13:15:32 +0100
commit3dfc4a08dc2e77178f2c2af68dc14b32da2d8b8f (patch)
treeabde443255a515041f7c28e919601267edec2fdc /changelog.d/13972.bugfix
parentFix overflows in /messages backfill calculation (#13936) (diff)
downloadsynapse-3dfc4a08dc2e77178f2c2af68dc14b32da2d8b8f.tar.xz
Fix performance regression in `get_users_in_room` (#13972)
Fixes #13942. Introduced in #13575.

Basically, let's only get the ordered set of hosts out of the DB if we need an ordered set of hosts. Since we split the function up the caching won't be as good, but I think it will still be fine as e.g. multiple backfill requests for the same room will hit the cache.
Diffstat (limited to 'changelog.d/13972.bugfix')
-rw-r--r--changelog.d/13972.bugfix1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/13972.bugfix b/changelog.d/13972.bugfix
new file mode 100644
index 0000000000..4c1e19ef8c
--- /dev/null
+++ b/changelog.d/13972.bugfix
@@ -0,0 +1 @@
+Fix a performance regression in the `get_users_in_room` database query. Introduced in v1.67.0.