Commit Graph

88 Commits (5cb298c934adf9c7f42d06ea1ac74ab2bc651c23)

Author SHA1 Message Date
Erik Johnston 5cb298c934 Add room context api 9 years ago
Mark Haines 09cb5c7d33 Allow users that have left a room to get the messages that happend in the room before they left 9 years ago
Mark Haines 3c166a24c5 Remove undocumented and unimplemented 'feedback' parameter from the Client-Server API 9 years ago
Mark Haines 89ae0166de Allow room initialSync for users that have left the room, returning a snapshot of how the room was when they left it 9 years ago
Erik Johnston 2df8dd9b37 Move all the caches into their own package, synapse.util.caches 9 years ago
Erik Johnston b2c7bd4b09 Cache get_recent_events_for_room 9 years ago
Erik Johnston 07507643cb Use dictionary cache to do group -> state fetching 9 years ago
Erik Johnston a2c4f3f150 Fix daedlock 10 years ago
Erik Johnston f6f902d459 Move fetching of events into their own transactions 10 years ago
Erik Johnston 4071f29653 Fetch events from events_id in their own transactions 10 years ago
Erik Johnston 4df11b5039 Make get_current_token accept a direction parameter, which tells whether the source whether we want a token for going 'forwards' or 'backwards' 10 years ago
Erik Johnston 17653a5dfe Move storage.stream._StreamToken to types.RoomStreamToken 10 years ago
Erik Johnston 6ead27ddda Add more conditions on JOINs to make postgres go a little faster. 10 years ago
Erik Johnston 58d8339966 Add support for postgres instead of mysql. Change sql accourdingly. blob + varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS. 10 years ago
Erik Johnston 2ded344620 Remove unused import 10 years ago
Erik Johnston 8ad0f4912e
Stream ordering and out of order insertions. 10 years ago
Erik Johnston 9236136f3a Make work in both Maria and SQLite. Fix tests 10 years ago
Paul "LeoNerd" Evans ceb61daa70 Add the tiniest of tiny one-element caches to get_room_events_max_id() as it's read every time someone hits eventstream 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
Kegan Dougal 377ae369c1 Wrap all of get_app_service_rooms in a txn. 10 years ago
Kegan Dougal b216b36892 JOIN state_events rather than parsing unrecognized_keys to pull out member state_keys 10 years ago
Kegan Dougal ebc4830666 PR tweaks: set earlier on and use 'as json' for compat 10 years ago
Kegan Dougal 806a6c886a PEP8 10 years ago
Kegan Dougal f0995436e7 Check for membership invite events correctly. 10 years ago
Kegan Dougal dcec7175dc Finish impl to get new events for AS. ASes should now be able to poll /events 10 years ago
Kegan Dougal 978ce87c86 Comment unused variables. 10 years ago
Kegan Dougal 2d20466f9a Add stub functions and work out execution flow to implement AS event stream polling. 10 years ago
Mark Haines 8498d348d8 Fix token formatting 10 years ago
Mark Haines 22dd1cde2d Filter the recent events before applying the limit when doing an incremental sync with a gap 10 years ago
Mark Haines e016f4043b Use get_room_events_stream to get changes to the rooms if the number of changes is small 10 years ago
Mark Haines b0b80074e0 SYN-252: Supply the stream and topological parts in the correct order to the constructor 10 years ago
Mark Haines e020574d65 Fix Formatting 10 years ago
Mark Haines a56008842b Start implementing incremental initial sync 10 years ago
Mark Haines fda63064fc get_room_events isn't called anywhere 10 years ago
Mark Haines 895fcb377e Fix stream token ordering 10 years ago
Kegan Dougal c43d898119 SYN-178: Fix off by one. 10 years ago
Erik Johnston fd9a8db7ea Only fetch the columns we need. 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Erik Johnston af1c7c7808 PEP8 10 years ago
Erik Johnston 98933e3db6 Only fetch prev_content when a client is streaming/paginating. Use transactions for event streams. 10 years ago
Erik Johnston 1505055334 Don't return outliers when we get recent events for rooms. 10 years ago
Mark Haines db9ce032a4 Fix pep8 codestyle warnings 10 years ago
Mark Haines 1731af3f29 SYN-104: When going backwards the end token should be before the last event 10 years ago
Erik Johnston 65f846ade0 Notify users about invites. 10 years ago
Erik Johnston da1dda3e1d Add transaction level logging and timing information. Add a _simple_delete method 10 years ago
Erik Johnston c818aa13eb Add LIMIT to scalar subquery 10 years ago
Erik Johnston 70899d3ab2 Rename deletions to redactions 10 years ago
Erik Johnston 78af6bbb98 Add m.room.deletion. If an event is deleted it will be returned to clients 'pruned', i.e. all client specified keys will be removed. 10 years ago