MatrixSynapse/synapse/storage/schema
Erik Johnston 3acf85c85f
Reduce likelihood of Postgres table scanning `state_groups_state`. (#10359)
The postgres statistics collector sometimes massively underestimates the
number of distinct state groups are in the `state_groups_state`, which
can cause postgres to use table scans for queries for multiple state
groups.

We fix this by manually setting `n_distinct` on the column.
2021-07-15 16:02:12 +01:00
..
common Support for database schema version ranges (#9933) 2021-06-11 14:45:53 +01:00
main Replace `room_depth.min_depth` with a BIGINT (#10289) 2021-07-12 17:22:54 +01:00
state Reduce likelihood of Postgres table scanning `state_groups_state`. (#10359) 2021-07-15 16:02:12 +01:00
README.md Support for database schema version ranges (#9933) 2021-06-11 14:45:53 +01:00
__init__.py Remove functionality associated with unused historical stats tables (#9721) 2021-07-08 16:57:13 +01:00

README.md

Synapse Database Schemas

This directory contains the schema files used to build Synapse databases. For more information, see /docs/development/database_schema.md.