Commit Graph

80 Commits (ae72e247fa478a541c837aaa7663aa3ca01ba840)

Author SHA1 Message Date
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
Erik Johnston 8763dd80ef Don't fetch prev_content for current_state 10 years ago
Erik Johnston acb12cc811 Make store.get_current_state fetch events asyncly 10 years ago
Erik Johnston f6f902d459 Move fetching of events into their own transactions 10 years ago
Erik Johnston cdb3757942 Refactor _get_events 10 years ago
Erik Johnston 4071f29653 Fetch events from events_id in their own transactions 10 years ago
Erik Johnston ca4f458787 Fetch events in bulk 10 years ago
Erik Johnston 6edff11a88 Don't fetch redaction and rejection stuff for each event, so we can use index only scan 10 years ago
Erik Johnston 02590c3e1d Temp turn off checking for rejections and redactions 10 years ago
Erik Johnston 619a21812b defer.gatherResults loop 10 years ago
Erik Johnston fec4485e28 Batch fetching of events for state groups 10 years ago
Erik Johnston 409bcc76bd Load events for state group seperately 10 years ago
Mark Haines d18f37e026 Collect the invalidate callbacks on the transaction object rather than passing around a separate list 10 years ago
Erik Johnston 43c2e8deae Add support for using executemany 10 years ago
Mark Haines a9aea68fd5 Invalidate the caches from the correct thread 10 years ago
Erik Johnston 8be5284e91 Remove pointless join 10 years ago
Erik Johnston 00718ae7a9 Need more yield 10 years ago
Erik Johnston 0465560c1a Add missing param 10 years ago