MatrixSynapse/synapse/storage
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
..
data_stores Fix the SQL SELECT query in _paginate_room_events_txn 2019-11-07 11:51:11 +00:00
engines Merge pull request #6156 from matrix-org/erikj/postgres_any 2019-10-10 16:41:36 +01:00
schema Move schema delta files to the correct data store. 2019-10-24 16:45:03 +01:00
util Update black to 19.10b0 (#6304) 2019-11-01 02:43:24 +11:00
__init__.py Add StateGroupStorage interface 2019-10-30 14:46:49 +00:00
_base.py Remove usage of deprecated logger.warn method from codebase (#6271) 2019-10-31 10:23:24 +00:00
background_updates.py Add CI for synapse_port_db (#6140) 2019-10-28 17:45:32 +00:00
keys.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
persist_events.py Merge pull request #6294 from matrix-org/erikj/add_state_storage 2019-10-31 16:17:53 +01:00
prepare_database.py Clean up prepare_database.py a bit and add comments 2019-10-22 18:43:31 +01:00
presence.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
push_rule.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
relations.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
roommember.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
state.py Apply suggestions from code review 2019-10-31 15:44:31 +01:00