Skip to content
Snippets Groups Projects
Forked from Maunium / synapse
2867 commits behind the upstream repository.
user avatar
Sean Quah authored
PostgreSQL may underestimate the number of distinct `room_id`s in
`event_search`, which can cause it to use table scans for queries for
multiple rooms.

Fix this by setting `n_distinct` on the column.

Resolves #14402.

Signed-off-by: default avatarSean Quah <seanq@matrix.org>
b2c2b030
History