Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Doc args | Erik Johnston | 2017-02-01 | 1 | -0/+4 |
| | |||||
* | Comment | Erik Johnston | 2017-02-01 | 1 | -0/+3 |
| | |||||
* | Include newly joined users in /keys/changes API | Erik Johnston | 2017-02-01 | 1 | -0/+7 |
| | |||||
* | Add profile data to the room_membership table for joins | Erik Johnston | 2016-12-08 | 1 | -0/+3 |
| | |||||
* | Store federation stream positions in the database | Erik Johnston | 2016-11-21 | 1 | -0/+16 |
| | |||||
* | Handle sending events and device messages over federation | Erik Johnston | 2016-11-17 | 1 | -0/+31 |
| | |||||
* | Fix incredubly slow back pagination query | Erik Johnston | 2016-10-24 | 1 | -6/+13 |
| | | | | | | | If a client didn't specify a from token when paginating backwards synapse would attempt to query the (global) maximum topological token. This a) doesn't make much sense since they're room specific and b) there are no indices that lets postgres do this efficiently. | ||||
* | Calculate the public room list from a stream_ordering | Erik Johnston | 2016-09-14 | 1 | -0/+3 |
| | |||||
* | Preserve some logcontexts | Erik Johnston | 2016-08-24 | 1 | -3/+3 |
| | |||||
* | Comment | Erik Johnston | 2016-07-20 | 1 | -0/+4 |
| | |||||
* | Add support for filters in paginate_room_events | Erik Johnston | 2016-07-14 | 1 | -1/+51 |
| | |||||
* | Merge branch 'erikj/shared_secret' into erikj/test2 | Erik Johnston | 2016-07-06 | 1 | -51/+93 |
|\ | |||||
| * | Fix typo | Mark Haines | 2016-07-05 | 1 | -1/+1 |
| | | |||||
| * | Make get_events_around more efficient on sqlite3 | Mark Haines | 2016-07-05 | 1 | -13/+49 |
| | | |||||
| * | Use true/false for boolean parameter inclusive to avoid potential for sqli, ↵ | Mark Haines | 2016-07-05 | 1 | -4/+6 |
| | | | | | | | | and possibly make the code clearer | ||||
| * | Use different SQL for postgres and sqlite3 for when using multicolumn indexes | Mark Haines | 2016-07-04 | 1 | -50/+50 |
| | | |||||
| * | Use a query that postgresql optimises better for get_events_around | Mark Haines | 2016-07-04 | 1 | -12/+16 |
| | | |||||
* | | Add ReadWriteLock for pagination and history prune | Erik Johnston | 2016-07-05 | 1 | -2/+2 |
|/ | |||||
* | Remove event fetching from DB threads | Erik Johnston | 2016-06-03 | 1 | -19/+15 |
| | |||||
* | Remove some unused functions (#711) | Mark Haines | 2016-04-08 | 1 | -90/+0 |
| | | | | | | | | * Remove some unused functions * get_room_events_stream is only used in tests * is_exclusive_room might actually be something we want | ||||
* | Use a stream id generator for backfilled ids | Mark Haines | 2016-04-01 | 1 | -1/+1 |
| | |||||
* | Don't cache events in get_recent_events_for_room | Erik Johnston | 2016-03-23 | 1 | -14/+19 |
| | |||||
* | Add comment | Erik Johnston | 2016-03-09 | 1 | -0/+3 |
| | |||||
* | Return the correct token form | Erik Johnston | 2016-03-09 | 1 | -1/+1 |
| | |||||
* | Use topological orders for initial sync timeline | Erik Johnston | 2016-03-09 | 1 | -2/+2 |
| | |||||
* | Remove unused param from get_max_token | Erik Johnston | 2016-02-18 | 1 | -1/+1 |
| | |||||
* | Fix SYN-627, events are in incorrect room in /sync | Erik Johnston | 2016-02-11 | 1 | -1/+1 |
| | |||||
* | Return events in correct order for /events | Erik Johnston | 2016-02-11 | 1 | -8/+11 |
| | |||||
* | Fix up logcontexts | Erik Johnston | 2016-02-08 | 1 | -4/+5 |
| | |||||
* | Add descriptions | Erik Johnston | 2016-02-03 | 1 | -0/+1 |
| | |||||
* | Fix flake8 warnings for new flake8 | Daniel Wagner-Hall | 2016-02-02 | 1 | -1/+1 |
| | |||||
* | s/get_room_changes_for_user/get_membership_changes_for_user/ | Erik Johnston | 2016-02-02 | 1 | -2/+2 |
| | |||||
* | Fetch events in a separate transaction. | Erik Johnston | 2016-02-02 | 1 | -26/+29 |
| | | | | | | | | | This has a couple of benefits: - It reduces the time of transactions, allowing other database requests to run. - Fetching events is given a dedicated database thread, and so can't starve other database requests. | ||||
* | Order things correctly | Erik Johnston | 2016-02-01 | 1 | -0/+4 |
| | |||||
* | Switch over /events to use per room caches | Erik Johnston | 2016-02-01 | 1 | -2/+2 |
| | |||||
* | Merge pull request #543 from matrix-org/erikj/sync | Erik Johnston | 2016-02-01 | 1 | -0/+7 |
|\ | | | | | Cache get_room_changes_for_user | ||||
| * | Cache get_room_changes_for_user | Erik Johnston | 2016-01-29 | 1 | -0/+7 |
| | | |||||
* | | Only use room_ids if in get_room_events_stream if is_guest | Erik Johnston | 2016-02-01 | 1 | -5/+0 |
|/ | |||||
* | Prefill stream change caches | Erik Johnston | 2016-01-29 | 1 | -8/+0 |
| | |||||
* | Change name and doc has_entity_changed | Erik Johnston | 2016-01-28 | 1 | -1/+1 |
| | |||||
* | Cache tags and account data | Erik Johnston | 2016-01-28 | 1 | -4/+4 |
| | |||||
* | Ensure keys to RoomStreamChangeCache are ints | Erik Johnston | 2016-01-28 | 1 | -5/+6 |
| | |||||
* | Invalidate caches properly. Remove unused arg | Erik Johnston | 2016-01-28 | 1 | -1/+1 |
| | |||||
* | Allow paginating backwards from stream token | Erik Johnston | 2016-01-28 | 1 | -2/+14 |
| | |||||
* | Return correct type of token | Erik Johnston | 2016-01-28 | 1 | -3/+6 |
| | |||||
* | PEP8 | Erik Johnston | 2016-01-27 | 1 | -3/+6 |
| | |||||
* | Use the same path for incremental with gap or without gap | Erik Johnston | 2016-01-27 | 1 | -3/+3 |
| | |||||
* | Add cache to room stream | Erik Johnston | 2016-01-27 | 1 | -0/+133 |
| | |||||
* | Add a Homeserver.setup method. | Erik Johnston | 2016-01-26 | 1 | -13/+0 |
| | | | | | | This is for setting up dependencies that require work on startup. This is useful for the DataStore that wants to read a bunch from the database before initiliazing. | ||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Open up /events to anonymous users for room events only | Daniel Wagner-Hall | 2015-11-05 | 1 | -8/+38 |
| | | | | Squash-merge of PR #345 from daniel/anonymousevents | ||||
* | Remove more unused parameters | Daniel Wagner-Hall | 2015-11-02 | 1 | -2/+1 |
| | |||||
* | Docs | Erik Johnston | 2015-10-28 | 1 | -0/+26 |
| | |||||
* | Add room context api | Erik Johnston | 2015-10-28 | 1 | -1/+110 |
| | |||||
* | Allow users that have left a room to get the messages that happend in the ↵ | Mark Haines | 2015-09-09 | 1 | -1/+18 |
| | | | | room before they left | ||||
* | Remove undocumented and unimplemented 'feedback' parameter from the ↵ | Mark Haines | 2015-09-09 | 1 | -8/+2 |
| | | | | Client-Server API | ||||
* | Allow room initialSync for users that have left the room, returning a ↵ | Mark Haines | 2015-09-09 | 1 | -0/+15 |
| | | | | snapshot of how the room was when they left it | ||||
* | Move all the caches into their own package, synapse.util.caches | Erik Johnston | 2015-08-11 | 1 | -1/+2 |
| | |||||
* | Cache get_recent_events_for_room | Erik Johnston | 2015-08-07 | 1 | -2/+2 |
| | |||||
* | Use dictionary cache to do group -> state fetching | Erik Johnston | 2015-08-05 | 1 | -2/+1 |
| | |||||
* | Fix daedlock | Erik Johnston | 2015-05-15 | 1 | -0/+2 |
| | |||||
* | Move fetching of events into their own transactions | Erik Johnston | 2015-05-14 | 1 | -9/+10 |
| | |||||
* | Fetch events from events_id in their own transactions | Erik Johnston | 2015-05-13 | 1 | -10/+12 |
| | |||||
* | Make get_current_token accept a direction parameter, which tells whether the ↵ | Erik Johnston | 2015-05-12 | 1 | -2/+18 |
| | | | | source whether we want a token for going 'forwards' or 'backwards' | ||||
* | Move storage.stream._StreamToken to types.RoomStreamToken | Erik Johnston | 2015-05-11 | 1 | -85/+33 |
| | |||||
* | Add more conditions on JOINs to make postgres go a little faster. | Erik Johnston | 2015-04-30 | 1 | -3/+5 |
| | |||||
* | Add support for postgres instead of mysql. Change sql accourdingly. blob + ↵ | Erik Johnston | 2015-04-14 | 1 | -8/+8 |
| | | | | varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS. | ||||
* | Remove unused import | Erik Johnston | 2015-04-09 | 1 | -1/+1 |
| | |||||
* | Stream ordering and out of order insertions. | Erik Johnston | 2015-04-09 | 1 | -20/+3 |
| | | | | | | | Handle the fact that events can be persisted out of order, and so to get the "current max" stream token becomes non trivial - as we need to make sure that *all* stream tokens less than the current max have also successfully been persisted. | ||||
* | Make work in both Maria and SQLite. Fix tests | Erik Johnston | 2015-04-01 | 1 | -6/+0 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into mysql | Erik Johnston | 2015-03-20 | 1 | -1/+2 |
|\ | |||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into store_rearrangement | Erik Johnston | 2015-03-20 | 1 | -1/+2 |
| |\ | |||||
| | * | Add the tiniest of tiny one-element caches to get_room_events_max_id() as ↵ | Paul "LeoNerd" Evans | 2015-03-20 | 1 | -1/+2 |
| | | | | | | | | | | | | it's read every time someone hits eventstream | ||||
| * | | Rearrange storage modules | Erik Johnston | 2015-03-20 | 1 | -0/+19 |
| |/ | |||||
* | | Rearrange storage modules | Erik Johnston | 2015-03-20 | 1 | -0/+19 |
| | | |||||
* | | Convert storage layer to be mysql compatible | Erik Johnston | 2015-03-19 | 1 | -2/+2 |
|/ | |||||
* | Wrap all of get_app_service_rooms in a txn. | Kegan Dougal | 2015-03-02 | 1 | -24/+22 |
| | |||||
* | JOIN state_events rather than parsing unrecognized_keys to pull out member ↵ | Kegan Dougal | 2015-03-02 | 1 | -10/+4 |
| | | | | state_keys | ||||
* | PR tweaks: set earlier on and use 'as json' for compat | Kegan Dougal | 2015-03-02 | 1 | -4/+4 |
| | |||||
* | PEP8 | Kegan Dougal | 2015-02-27 | 1 | -1/+0 |
| | |||||
* | Check for membership invite events correctly. | Kegan Dougal | 2015-02-26 | 1 | -2/+21 |
| | |||||
* | Finish impl to get new events for AS. ASes should now be able to poll /events | Kegan Dougal | 2015-02-26 | 1 | -7/+55 |
| | |||||
* | Comment unused variables. | Kegan Dougal | 2015-02-25 | 1 | -2/+2 |
| | |||||
* | Add stub functions and work out execution flow to implement AS event stream ↵ | Kegan Dougal | 2015-02-25 | 1 | -0/+21 |
| | | | | polling. | ||||
* | Fix token formatting | Mark Haines | 2015-01-30 | 1 | -2/+2 |
| | |||||
* | Filter the recent events before applying the limit when doing an incremental ↵ | Mark Haines | 2015-01-30 | 1 | -6/+15 |
| | | | | sync with a gap | ||||
* | Merge branch 'client_v2_filter' into client_v2_sync | Mark Haines | 2015-01-29 | 1 | -3/+3 |
|\ | | | | | | | | | Conflicts: synapse/rest/client/v2_alpha/__init__.py | ||||
| * | SYN-252: Supply the stream and topological parts in the correct order to the ↵ | Mark Haines | 2015-01-29 | 1 | -3/+3 |
| | | | | | | | | constructor | ||||
* | | Use get_room_events_stream to get changes to the rooms if the number of ↵ | Mark Haines | 2015-01-29 | 1 | -0/+7 |
| | | | | | | | | changes is small | ||||
* | | Fix Formatting | Mark Haines | 2015-01-27 | 1 | -1/+0 |
| | | |||||
* | | Start implementing incremental initial sync | Mark Haines | 2015-01-27 | 1 | -9/+32 |
|/ | |||||
* | get_room_events isn't called anywhere | Mark Haines | 2015-01-13 | 1 | -30/+0 |
| | |||||
* | Fix stream token ordering | Mark Haines | 2015-01-13 | 1 | -72/+101 |
| | |||||
* | SYN-178: Fix off by one. | Kegan Dougal | 2015-01-12 | 1 | -2/+6 |
| | |||||
* | Only fetch the columns we need. | Erik Johnston | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Merge pull request #28 from matrix-org/erikj-perf | Mark Haines | 2015-01-06 | 1 | -77/+68 |
|\ | | | | | Database performance improvements. | ||||
| * | PEP8 | Erik Johnston | 2015-01-06 | 1 | -1/+0 |
| | | |||||
| * | Only fetch prev_content when a client is streaming/paginating. Use ↵ | Erik Johnston | 2015-01-06 | 1 | -77/+69 |
| | | | | | | | | transactions for event streams. | ||||
* | | Update copyright notices | Mark Haines | 2015-01-06 | 1 | -1/+1 |
|/ | |||||
* | Don't return outliers when we get recent events for rooms. | Erik Johnston | 2014-11-27 | 1 | -1/+1 |
| | |||||
* | Fix pep8 codestyle warnings | Mark Haines | 2014-11-20 | 1 | -5/+6 |
| | |||||
* | SYN-104: When going backwards the end token should be before the last event | Mark Haines | 2014-11-18 | 1 | -0/+3 |
| | |||||
* | Notify users about invites. | Erik Johnston | 2014-11-10 | 1 | -2/+1 |
| | |||||
* | Add transaction level logging and timing information. Add a _simple_delete ↵ | Erik Johnston | 2014-10-28 | 1 | -1/+4 |
| | | | | method | ||||
* | Add LIMIT to scalar subquery | Erik Johnston | 2014-09-25 | 1 | -3/+6 |
| | |||||
* | Rename deletions to redactions | Erik Johnston | 2014-09-24 | 1 | -9/+9 |
| | |||||
* | Add m.room.deletion. If an event is deleted it will be returned to clients ↵ | Erik Johnston | 2014-09-23 | 1 | -5/+25 |
| | | | | 'pruned', i.e. all client specified keys will be removed. | ||||
* | SYN-47: Fix bug where we still returned events for rooms we had left. | Erik Johnston | 2014-09-19 | 1 | -1/+1 |
| | | | | SYN-47 #resolve | ||||
* | Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool | Paul "LeoNerd" Evans | 2014-09-12 | 1 | -1/+1 |
| | |||||
* | When getting a state event also include the previous content | Erik Johnston | 2014-09-06 | 1 | -8/+9 |
| | |||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | Get the equalities right. | Erik Johnston | 2014-08-29 | 1 | -2/+5 |
| | |||||
* | Initial room event stream token must be s0, not s1, or everyone will miss ↵ | Paul "LeoNerd" Evans | 2014-08-28 | 1 | -1/+1 |
| | | | | the very first room event | ||||
* | Merge branch 'develop' into storage_transactions | Mark Haines | 2014-08-27 | 1 | -2/+2 |
|\ | | | | | | | | | | | Conflicts: synapse/handlers/room.py synapse/storage/stream.py | ||||
| * | WIP: Completely change how event streaming and pagination work. This ↵ | Erik Johnston | 2014-08-26 | 1 | -2/+2 |
| | | | | | | | | reflects the change in the underlying storage model. | ||||
* | | Merge branch 'develop' into storage_transactions | Mark Haines | 2014-08-26 | 1 | -7/+5 |
|\| | | | | | | | | | | | | | Conflicts: synapse/api/auth.py synapse/handlers/room.py synapse/storage/__init__.py | ||||
| * | Fix pyflakes errors | Mark Haines | 2014-08-26 | 1 | -2/+0 |
| | | |||||
| * | Order 'get_recent_events_for_room' correctly. | Erik Johnston | 2014-08-26 | 1 | -1/+1 |
| | | |||||
| * | Don't return state event outlier's when paginating. | Erik Johnston | 2014-08-22 | 1 | -1/+2 |
| | | |||||
| * | Change IM sync api to also return the current presence list. | Erik Johnston | 2014-08-21 | 1 | -3/+2 |
| | | |||||
* | | Move the event storage into a single transaction | Mark Haines | 2014-08-26 | 1 | -5/+8 |
|/ | |||||
* | Make event stream storage return all membership events about the user, ↵ | Erik Johnston | 2014-08-20 | 1 | -4/+6 |
| | | | | regardless of if they were in the room or not. | ||||
* | Only hit get_room_events_stream if we have a valid user_id | Erik Johnston | 2014-08-19 | 1 | -0/+3 |
| | |||||
* | Fix token to correct format | Erik Johnston | 2014-08-19 | 1 | -1/+1 |
| | |||||
* | Remove debug logging from token parsing funcs. | Erik Johnston | 2014-08-19 | 1 | -2/+0 |
| | |||||
* | Add comment about what strorage.stream does | Erik Johnston | 2014-08-19 | 1 | -0/+20 |
| | |||||
* | Change the way pagination works to support out of order events. | Erik Johnston | 2014-08-19 | 1 | -29/+157 |
| | |||||
* | Fix typos in SQL and where we still had rowid's (which no longer exist) | Erik Johnston | 2014-08-18 | 1 | -6/+6 |
| | |||||
* | Make snapshot_all_rooms return results in the correct form, including start ↵ | Erik Johnston | 2014-08-18 | 1 | -4/+21 |
| | | | | and end tokens. | ||||
* | Add two different columns for ordering the events table, one which can be ↵ | Erik Johnston | 2014-08-18 | 1 | -8/+9 |
| | | | | used for pagination and one which can be as tokens for notifying clients. Also add a 'processed' field which is currently always set to True | ||||
* | PEP8 cleanups | Erik Johnston | 2014-08-15 | 1 | -2/+0 |
| | |||||
* | Comment. | Erik Johnston | 2014-08-15 | 1 | -0/+1 |
| | |||||
* | Fix bug when generating a key when get_room_events_stream returned zero rows | Erik Johnston | 2014-08-15 | 1 | -3/+7 |
| | |||||
* | Actually use MAX_STREAM_SIZE constant. | Erik Johnston | 2014-08-15 | 1 | -1/+1 |
| | |||||
* | Fix pagination to work with new db schema | Erik Johnston | 2014-08-15 | 1 | -7/+24 |
| | |||||
* | Correctly return new token when returning events. Serialize events correctly. | Erik Johnston | 2014-08-15 | 1 | -5/+13 |
| | |||||
* | Start chagning the events stream to work with the new DB schema | Erik Johnston | 2014-08-15 | 1 | -0/+31 |
| | |||||
* | Fix up typos and correct sql queries | Erik Johnston | 2014-08-14 | 1 | -7/+4 |
| | |||||
* | Update StreamStore | Erik Johnston | 2014-08-14 | 1 | -245/+36 |
| | |||||
* | add in whitespace after copyright statements to improve legibility | Matthew Hodgson | 2014-08-13 | 1 | -0/+1 |
| | |||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 1 | -0/+282 |