MatrixSynapse/synapse/storage/schema/main/delta/73
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
..
01event_failed_pull_attempts.sql
02add_pusher_enabled.sql
02room_id_indexes_for_purging.sql
03pusher_device_id.sql
03users_approved_column.sql
04partial_join_details.sql
04pending_device_list_updates.sql
05old_push_actions.sql.postgres
05old_push_actions.sql.sqlite
06thread_notifications_thread_id_idx.sql Update the thread_id right before use (in case the bg update hasn't finished) (#14222) 2022-10-18 14:55:41 +00:00
08thread_receipts_non_null.sql.postgres
08thread_receipts_non_null.sql.sqlite
09partial_joined_via_destination.sql
09threads_table.sql
10_update_sqlite_fts4_tokenizer.py Unified search query syntax using the full-text search capabilities of the underlying DB. (#11635) 2022-10-25 14:05:22 -04:00
10login_tokens.sql Save login tokens in database (#13844) 2022-10-26 11:45:41 +01:00
11event_search_room_id_n_distinct.sql.postgres Fix PostgreSQL sometimes using table scans for `event_search` (#14409) 2022-11-10 19:02:27 +00:00