MatrixSynapse/tests/storage
Matthew Hodgson bb81e78ec6
Split the state_group_cache in two (#3726)
Splits the state_group_cache in two.

One half contains normal state events; the other contains member events.

The idea is that the lazyloading common case of: "I want a subset of member events plus all of the other state" can be accomplished efficiently by splitting the cache into two, and asking for "all events" from the non-members cache, and "just these keys" from the members cache.  This means we can avoid having to make DictionaryCache aware of these sort of complicated queries, whilst letting LL requests benefit from the caching.

Previously we were unable to sensibly use the caching and had to pull all state from the DB irrespective of the filtering, which made things slow.  Hopefully fixes https://github.com/matrix-org/synapse/issues/3720.
2018-08-22 00:56:37 +02:00
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
test__base.py Run black. 2018-08-10 23:54:09 +10:00
test_appservice.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_background_update.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_base.py Run black. 2018-08-10 23:54:09 +10:00
test_client_ips.py Merge pull request #3670 from matrix-org/neilj/mau_sync_block 2018-08-14 15:21:31 +00:00
test_devices.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_directory.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_end_to_end_keys.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_event_federation.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_event_push_actions.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_keys.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_monthly_active_users.py call reap on start up and fix under reaping bug 2018-08-16 22:55:32 +01:00
test_presence.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_profile.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_redaction.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_registration.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_room.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_roommember.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_state.py Split the state_group_cache in two (#3726) 2018-08-22 00:56:37 +02:00
test_user_directory.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00