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 |