Commit Graph

112 Commits (9e6d88f4e2761ee6c2785f33085ba1d396b7e1ed)

Author SHA1 Message Date
Erik Johnston 70332a12dd Take value in a better way 8 years ago
Erik Johnston 373654c635 Comment about sqlite and WITH RECURSIVE 8 years ago
Erik Johnston 628e65721b Add comments 8 years ago
Erik Johnston a99e933550 Add upgrade script that will slowly prune state_groups_state entries 8 years ago
Erik Johnston 598317927c Limit the length of state chains 8 years ago
Erik Johnston 9e25443db8 Move to storing state_groups_state as deltas 8 years ago
Erik Johnston 0cfd6c3161 Use state_groups table to test existence 8 years ago
Erik Johnston c10cb581c6 Correctly handle the difference between prev and current state 8 years ago
Erik Johnston 1bb8ec296d Generate state group ids in state layer 8 years ago
Erik Johnston 5dc2a702cf Make _state_groups_id_gen a normal IdGenerator 8 years ago
Erik Johnston 778fa85f47 Make sync not pull out full state 8 years ago
Erik Johnston a3dc1e9cbe Replace context.current_state with context.current_state_ids 8 years ago
Erik Johnston 17f4f14df7 Pull out event ids rather than full events for state 8 years ago
Erik Johnston ba214a5e32 Remove lru option 8 years ago
Mark Haines 1b3c3e6d68 Only update the events and event_json tables for rejected events 8 years ago
Mark Haines 2623cec874 Don't add rejections to the state_group, persist all rejections 8 years ago
Erik Johnston 61c7edfd34 Add cache to _get_state_groups_from_groups 9 years ago
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