anonymousland-synapse/synapse/storage/schema/main
Sean Quah b2c2b03079
Fix PostgreSQL sometimes using table scans for event_search (#14409)
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>
2022-11-10 19:02:27 +00:00
..
delta Fix PostgreSQL sometimes using table scans for event_search (#14409) 2022-11-10 19:02:27 +00:00
full_schemas Snapshot schema 72 (#13873) 2022-09-26 18:28:32 +01:00