mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-01 17:41:55 +00:00
![Sean Quah](/assets/img/avatar_default.png)
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: Sean Quah <seanq@matrix.org>
2 lines
134 B
Plaintext
2 lines
134 B
Plaintext
Fix PostgreSQL sometimes using table scans for queries against the `event_search` table, taking a long time and a large amount of IO.
|