MatrixSynapse/tests
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
..
api add new error type ResourceLimit 2018-08-16 18:02:02 +01:00
app Integrate presence from hotfixes (#3694) 2018-08-18 01:08:45 +10:00
appservice Run black. 2018-08-10 23:54:09 +10:00
config Run black. 2018-08-10 23:54:09 +10:00
crypto Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
events Run black. 2018-08-10 23:54:09 +10:00
federation Run black. 2018-08-10 23:54:09 +10:00
handlers add new error type ResourceLimit 2018-08-16 18:02:02 +01:00
http Run black. 2018-08-10 23:54:09 +10:00
replication Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
rest Integrate presence from hotfixes (#3694) 2018-08-18 01:08:45 +10:00
storage Split the state_group_cache in two (#3726) 2018-08-22 00:56:37 +02:00
util Run black. 2018-08-10 23:54:09 +10:00
__init__.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
server.py Fix the tests 2018-08-15 15:12:23 +01:00
test_distributor.py Run black. 2018-08-10 23:54:09 +10:00
test_dns.py Run black. 2018-08-10 23:54:09 +10:00
test_event_auth.py Run black. 2018-08-10 23:54:09 +10:00
test_federation.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_preview.py Run black. 2018-08-10 23:54:09 +10:00
test_server.py Fix the tests 2018-08-15 15:12:23 +01:00
test_state.py Run black. 2018-08-10 23:54:09 +10:00
test_test_utils.py Run black. 2018-08-10 23:54:09 +10:00
test_types.py Run black. 2018-08-10 23:54:09 +10:00
test_visibility.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
unittest.py Integrate presence from hotfixes (#3694) 2018-08-18 01:08:45 +10:00
utils.py Integrate presence from hotfixes (#3694) 2018-08-18 01:08:45 +10:00