0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-24 13:38:19 +02:00
synapse/synapse/storage/schema
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
..
common Snapshot schema 72 (#13873) 2022-09-26 18:28:32 +01:00
main Fix PostgreSQL sometimes using table scans for event_search (#14409) 2022-11-10 19:02:27 +00:00
state Snapshot schema 72 (#13873) 2022-09-26 18:28:32 +01:00
__init__.py Track notification counts per thread (implement MSC3773). (#13776) 2022-10-04 09:47:04 -04:00
README.md update links to schema doc (#10620) 2021-08-17 10:45:35 +00:00

Synapse Database Schemas

This directory contains the schema files used to build Synapse databases. For more information, see https://matrix-org.github.io/synapse/develop/development/database_schema.html.