anonymousland-synapse/synapse/storage
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
..
databases Show all joinable rooms in the spaces summary. (#10298) 2021-07-13 08:59:27 -04:00
engines Fix the inbound PDU metric (#10279) 2021-06-30 12:07:16 +01:00
schema Reduce likelihood of Postgres table scanning state_groups_state. (#10359) 2021-07-15 16:02:12 +01:00
util Fix bug when running presence off master (#10149) 2021-06-11 10:27:12 +01:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Remove unnecessary SystemRandom from SQLBaseStore (#9987) 2021-05-14 10:59:10 +01:00
background_updates.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
database.py Add script for getting info about recently registered users (#10290) 2021-07-06 13:03:16 +01:00
keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
persist_events.py Fix persist_events to stop leaking opentracing contexts (#10193) 2021-06-17 11:21:53 +01:00
prepare_database.py Support for database schema version ranges (#9933) 2021-06-11 14:45:53 +01:00
purge_events.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
push_rule.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
roommember.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state.py Fix get_state_ids_for_event return type typo to match what the function actually does (#10050) 2021-05-24 10:43:33 +01:00
types.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00