summary refs log tree commit diff
path: root/synapse/storage/account_data.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* run isortAmber Brown2018-07-091-7/+6
|
* Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-1/+2
|
* remove dead filter_events_for_clientsRichard van der Hoff2018-06-121-20/+1
| | | | | | This is only used by filter_events_for_client, so we can simplify the whole thing by just doing one user at a time, and removing a dead storage function to boot.
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2018-03-191-1/+1
|\
| * Replace ujson with simplejsonErik Johnston2018-03-151-1/+1
| |
* | Fewer lies are betterErik Johnston2018-03-011-2/+2
| |
* | Improve caching for read_marker APIErik Johnston2018-03-011-0/+35
| | | | | | | | | | | | We add a new storage function to get a paritcular type of room account data. This allows us to prefill the cache when updating that acount data.
* | Add some caches to help read marker APIErik Johnston2018-03-011-0/+2
| |
* | Update copyrightErik Johnston2018-02-231-0/+1
| |
* | Use absolute importsErik Johnston2018-02-231-2/+2
| |
* | Split AccountDataStore and TagStoreErik Johnston2018-02-211-15/+60
|/
* Avoid locking account_data tables for upsertsRichard van der Hoff2017-11-161-36/+49
|
* Up cache size of get_global_account_data_by_type_for_userErik Johnston2017-11-131-1/+1
|
* Perf: Don't filter events for pushErik Johnston2017-07-071-0/+13
| | | | | We know the users are joined and we can explicitly check for if they are ignoring the user, so lets do that.
* Revert "Speed up filtering of a single event in push"Erik Johnston2017-05-081-13/+0
| | | | This reverts commit 421fdf74609439edaaffce117436e6a6df147841.
* Speed up filtering of a single event in pushErik Johnston2017-04-281-0/+13
|
* User Cursor.__iter__ instead of fetchallErik Johnston2017-03-231-2/+2
| | | | This prevents unnecessary construction of lists
* Don't hit DB for noop replications queriesErik Johnston2016-06-081-0/+3
|
* Add bulk fetch storage APIErik Johnston2016-05-051-3/+22
|
* Implement basic ignore userErik Johnston2016-05-041-0/+31
|
* 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