MatrixSynapse/synapse/storage/data_stores
Brendan Abolivier 3f9b61ff95
Fix the SQL SELECT query in _paginate_room_events_txn
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.
2019-11-07 11:51:11 +00:00
..
main Fix the SQL SELECT query in _paginate_room_events_txn 2019-11-07 11:51:11 +00:00
__init__.py Add DataStores and Storage classes. 2019-10-23 16:15:03 +01:00