mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 03:25:53 +03:00
b2c2b03079
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>
1 line
134 B
Text
1 line
134 B
Text
Fix PostgreSQL sometimes using table scans for queries against the `event_search` table, taking a long time and a large amount of IO.
|