summary refs log tree commit diff
path: root/synapse/storage/receipts.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #809 from matrix-org/erikj/cache_receipts_in_roomErik Johnston2016-06-031-0/+28
|\ | | | | Add get_users_with_read_receipts_in_room cache
| * Add get_users_with_read_receipts_in_room cacheErik Johnston2016-06-011-0/+28
| |
* | Only delete push actions after 30 daysDavid Baker2016-05-201-1/+1
|/
* Allow receipts for events we haven't seen in the dbMark Haines2016-05-131-4/+6
|
* Merge pull request #769 from matrix-org/erikj/push_actions_deleteErik Johnston2016-05-131-9/+17
|\ | | | | Delete old pushers
| * Delete old pushersErik Johnston2016-05-031-9/+17
| |
* | Use tree cache for get_linearized_receipts_for_roomErik Johnston2016-05-131-3/+3
|/
* Check that somethign has happend before running the selectsMark Haines2016-04-271-0/+3
|
* Merge remote-tracking branch 'origin/develop' into ↵David Baker2016-04-071-2/+2
|\ | | | | | | dbkr/pushers_use_event_actions
| * Make the cache objects be per instance rather than being globalMark Haines2016-04-061-2/+2
| |
* | Send badge count pushes.David Baker2016-04-071-3/+6
|/ | | | Also fix bugs with retrying.
* Use a stream id generator for backfilled idsMark Haines2016-04-011-3/+3
|
* Intern all the thingsErik Johnston2016-03-231-11/+10
|
* Merge pull request #489 from matrix-org/markjh/replicationMark Haines2016-03-011-0/+16
|\ | | | | Add a /replication API for extracting the updates that happened on synapse.
| * Add a /replication API for extracting the updates that happened onMark Haines2016-03-011-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | synapse This is necessary for replicating the data in synapse to be visible to a separate service because presence and typing notifications aren't stored in a database so won't be visible to another process. This API can be used to either get the raw data by requesting the tables themselves or to just receive notifications for updates by following the streams meta-stream. Returns updates for each table requested a JSON array of arrays with a row for each row in the table. Each table is prefixed by a header row with the: name of the table, current stream_id position for the table, number of rows, number of columns and the names of the columns. This is followed by the rows that have been added to the server since the requester last asked. The API has a timeout and is hooked up to the notifier so that a slave can long poll for updates.
* | Load the current id in the IdGenerator constructorMark Haines2016-03-011-2/+2
|/ | | | | | | | | Rather than loading them lazily. This allows us to remove all the yield statements and spurious arguments for the get_next methods. It also allows us to replace all instances of get_next_txn with get_next since get_next no longer needs to access the db.
* Remove unused param from get_max_tokenErik Johnston2016-02-181-3/+3
|
* Invalidate get_last_receipt_event_id_for_user cacheErik Johnston2016-02-091-0/+5
|
* Don't load all ephemeral state for a room on every syncErik Johnston2016-02-091-0/+14
|
* Cache tags and account dataErik Johnston2016-01-281-4/+4
|
* Invalidate caches properly. Remove unused argErik Johnston2016-01-281-4/+6
|
* PEP8Erik Johnston2016-01-271-2/+0
|
* Add cache to room streamErik Johnston2016-01-271-62/+3
|
* Add a Homeserver.setup method.Erik Johnston2016-01-261-3/+5
| | | | | | 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.
* peppateDavid Baker2016-01-201-3/+2
|
* Add storage function to get all receipts for a user. Also add some cache ↵David Baker2016-01-201-21/+34
| | | | invalidation to the receipts storage because there wasn't any, and remove a method that was unused.
* Add regex cache. Only caculate push actions for users that have sent read ↵Erik Johnston2016-01-191-1/+13
| | | | receipts, and are on that server
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Rename unhelpful variable nameErik Johnston2015-08-181-7/+2
|
* CommentsErik Johnston2015-08-181-4/+14
|
* Remove unused importErik Johnston2015-08-171-2/+0
|
* Batch _get_linearized_receipts_for_roomsErik Johnston2015-08-141-15/+64
|
* Add metrics to the receipts cacheErik Johnston2015-08-131-0/+6
|
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+2
|
* Add support for using keyword arguments with cached functionsErik Johnston2015-07-271-3/+2
|
* Up default cache size for _RoomStreamChangeCacheMatrix2015-07-181-1/+1
|
* DocsErik Johnston2015-07-141-3/+28
|
* CommentsErik Johnston2015-07-131-0/+11
|
* Handle error slightly betterErik Johnston2015-07-091-2/+2
|
* Change format of receipts to allow inclusion of dataErik Johnston2015-07-091-19/+20
|
* Add a cache to fetching of receipt streamsErik Johnston2015-07-081-3/+89
|
* Hook up receipts to v1 initialSyncErik Johnston2015-07-081-9/+20
|
* Wire together receipts and the notifer/federationErik Johnston2015-07-071-9/+60
|
* Fix various typosErik Johnston2015-07-071-6/+7
|
* Add basic storage functions for handling of receiptsErik Johnston2015-07-011-0/+162