mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
3f9b61ff95
Doing a SELECT DISTINCT when paginating is quite expensive, because it requires the engine to do sorting on the entire events table. However, we only need to run it if we're filtering on 2+ labels, so this PR is changing the request so that DISTINCT is only used then. |
||
---|---|---|
.. | ||
data_stores | ||
engines | ||
schema | ||
util | ||
__init__.py | ||
_base.py | ||
background_updates.py | ||
keys.py | ||
persist_events.py | ||
prepare_database.py | ||
presence.py | ||
push_rule.py | ||
relations.py | ||
roommember.py | ||
state.py |