summary refs log tree commit diff
path: root/synapse/storage/account_data.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use a stream id generator for backfilled idsMark Haines2016-04-011-2/+2
|
* Merge pull request #489 from matrix-org/markjh/replicationMark Haines2016-03-011-2/+34
|\ | | | | 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-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-4/+4
|/ | | | | | | | | 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-2/+2
|
* Invalidate _account_data_stream_cache correctlyErik Johnston2016-01-291-0/+4
|
* Prefill stream change cachesErik Johnston2016-01-291-9/+0
|
* Bump AccountDataAndTagsChangeCache sizeErik Johnston2016-01-291-1/+1
|
* Amalgamate tags and account data stream cachesErik Johnston2016-01-281-1/+2
|
* Don't use defer.returnValueErik Johnston2016-01-281-1/+1
|
* Change name and doc has_entity_changedErik Johnston2016-01-281-1/+1
|
* Cache tags and account dataErik Johnston2016-01-281-1/+19
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Add API for setting account_data globaly or on a per room basisMark Haines2015-12-011-0/+211