Commit Graph

205 Commits (c31793a784059d3c90c1a81396fa832fa9efebac)

Author SHA1 Message Date
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
Erik Johnston f383d5a801 Fix up get_current_state and get_room_name_and_aliases queries to parse events in transaction 10 years ago
Erik Johnston 3c4c229788 Don't use sub queries, it makes postgres sad 10 years ago
Erik Johnston 2366d28780 Don't needlessly join on state_events 10 years ago
Erik Johnston 86fc9b617c For backwards compat, make state_groups.id have a type of int, not varchar 10 years ago
Erik Johnston 0bfa78b39b PEP8 10 years ago
Erik Johnston 304111afd0 Don't use AUTOINCREMENT, use an in memory version 10 years ago
Erik Johnston 6e7131f02f Remove uses of REPLACE and ON CONFLICT IGNORE to make the SQL more portable. 10 years ago
Erik Johnston 87db64b839 Rearrange storage modules 10 years ago
Erik Johnston cb8162d3d1 Rearrange storage modules 10 years ago
Erik Johnston d7a0496f3e Convert storage layer to be mysql compatible 10 years ago
Erik Johnston f1d2b94e0b Copy dict of context.current_state before changing it. 10 years ago
Mark Haines 3891597eb3 Remove unused functions 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Erik Johnston 12819d5082 Remove debug lines 10 years ago
Erik Johnston 753126b8cc Add some debug logging 10 years ago
Erik Johnston f3788e3c78 Test some ideas that might help performance a bit 10 years ago
Erik Johnston d044121168 Various typos and bug fixes. 10 years ago
Erik Johnston 6630e1b579 Start making more things use EventContext rather than event.* 10 years ago
Erik Johnston 3598c11c8d Correctly handle the case where we get an event for an unknown room, which turns out we are actually in 10 years ago
Erik Johnston e24d5cb97d Document StateStore and use transactions 10 years ago
Erik Johnston 6fea478d2e Fix bugs with invites/joins across federatiom. 10 years ago
Erik Johnston 5ff0bfb81d Fix bug where we /always/ created a new state group 10 years ago
Erik Johnston da1dda3e1d Add transaction level logging and timing information. Add a _simple_delete method 10 years ago
Erik Johnston 5ffe5ab43f Use state groups to get current state. Make join dance actually work. 10 years ago
Erik Johnston e7bc1291a0 Begin making auth use event.old_state_events 10 years ago
Erik Johnston 80472ac198 Add missing package storate.state 10 years ago