Commit Graph

97 Commits (6ac40f7b65e4ae41e7e3bb2310b6094efe70b045)

Author SHA1 Message Date
Mark Haines 87f2dec8d4 Make the cache objects be per instance rather than being global 9 years ago
Mark Haines 2a37467fa1 Use google style doc strings. 9 years ago
Mark Haines e36bfbab38 Use a stream id generator for backfilled ids 9 years ago
Mark Haines 31a9eceda5 Add a replication stream for state groups 9 years ago
Mark Haines 1e25f62ee6 Use a stream id generator to assign state group ids 9 years ago
Erik Johnston 2f0180b09e Don't bother interning keys that are already interned 9 years ago
Erik Johnston acdfef7b14 Intern all the things 9 years ago
Erik Johnston 75daede92f String intern 9 years ago
Erik Johnston 8b0dfc9fc4 Don't cache events in get_current_state_for_key 9 years ago
Erik Johnston 2c86187a1b Don't cache events in _state_group_cache 9 years ago
Mark Haines 54172924c8 Load the current id in the IdGenerator constructor 9 years ago
Erik Johnston 5189bfdef4 Batch fetch _get_state_groups_from_groups 9 years ago
Erik Johnston 24f00a6c33 Use _simple_select_many for _get_state_group_for_events 9 years ago
Matthew Hodgson 6c28ac260c copyrights 9 years ago
Richard van der Hoff fddedd51d9 Fix a few race conditions in the state calculation 9 years ago
Erik Johnston 858634e1d0 Remove unused room_id arg 9 years ago
Erik Johnston 927004e349 Remove unused room_id parameter 9 years ago
Mark Haines 1cd65a8d1e synapse/storage/state.py: _make_group_id was unused 9 years ago
Erik Johnston 1bd1a43073 Actually check if event_id isn't returned by _get_state_groups 9 years ago
Erik Johnston a82938416d Remove newline because vertical whitespace makes mjark sad 9 years ago
Erik Johnston 0bfdaf1f4f Rejig the code to make it nicer 9 years ago
Erik Johnston 8199475ce0 Ensure we never return a None event from _get_state_for_groups 9 years ago
Erik Johnston 85d0bc3bdc Reduce cache size from obscenely large to quite large 9 years ago
Erik Johnston f9d4da7f45 Fix bug where we were leaking None into state event lists 9 years ago
Erik Johnston 2bb2c02571 Remove some vertical space 9 years ago
Erik Johnston 57877b01d7 Replace list comprehension 9 years ago
Erik Johnston 0fbed2a8fa Comment 9 years ago
Erik Johnston c10ac7806e Explain why we're prefilling dict with Nones 9 years ago
Erik Johnston 101ee3fd00 Better variable name 9 years ago
Erik Johnston df361d08f7 Split _get_state_for_group_from_cache into two 9 years ago
Erik Johnston 2df8dd9b37 Move all the caches into their own package, synapse.util.caches 9 years ago
Erik Johnston 53a817518b Comments 9 years ago
Erik Johnston 1b994a97dd Fix application of ACLs 9 years ago
Erik Johnston 10b874067b Fix state cache 9 years ago
Erik Johnston 017b798e4f Clean up StateStore 9 years ago
Erik Johnston 2c019eea11 Remove unused function 9 years ago
Erik Johnston aa88582e00 Do bounds check 9 years ago
Erik Johnston 5119e416e8 Line length 9 years ago
Erik Johnston 3213ff630c Remove unnecessary cache 9 years ago
Erik Johnston 9eb5b23d3a Batch up various DB requests for event -> state 9 years ago
Erik Johnston b3768ec10a Remove unncessary cache 9 years ago
Erik Johnston fe994e728f Store absence of state in cache 9 years ago
Erik Johnston 07507643cb Use dictionary cache to do group -> state fetching 9 years ago
Erik Johnston 413a4c289b Add comment 9 years ago
Erik Johnston 4d6cb8814e Speed up event filtering (for ACL) logic 9 years ago
Erik Johnston 39e21ea51c Add support for using keyword arguments with cached functions 9 years ago
Erik Johnston 1a60545626 Add basic impl for room history ACL on GET /messages client API 10 years ago
Erik Johnston 5130d80d79 Add bulk insert events API 10 years ago
Erik Johnston 0d7d9c37b6 Add cache to get_state_groups 10 years ago
Mark Haines d61ce3f670 Add a cache for get_current_state with state_key 10 years ago