summary refs log tree commit diff
path: root/synapse/storage/presence.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Convert stream database to async/await. (#8074)Patrick Cloke2020-08-171-69/+0
|
* Move storage classes into a main "data store".Erik Johnston2019-10-211-134/+0
| | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage.
* Replace IN usage with helper funcsErik Johnston2019-10-101-8/+6
|
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-1/+1
| | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :)
* Replace returnValue with return (#5736)Amber Brown2019-07-231-4/+2
|
* Remove presence lists (#4989)Neil Johnson2019-04-031-85/+1
| | | Remove presence list support as per MSC 1819
* Run black on the rest of the storage module (#4996)Amber Brown2019-04-031-36/+50
|
* run isortAmber Brown2018-07-091-4/+6
|
* Consistently use six's iteritems and wrap lazy keys/values in list() if ↵Amber Brown2018-05-311-5/+2
| | | | they're not meant to be lazy (#3307)
* Actually call invalidateErik Johnston2017-03-241-1/+1
|
* Use presence replication stream to invalidate cacheErik Johnston2017-03-241-2/+2
| | | | | | Instead of using the cache invalidation replication stream to invalidate the _get_presence_cache, we can instead rely on the presence replication stream. This reduces the amount of replication traffic considerably.
* Cache get_presence storageErik Johnston2017-02-131-3/+11
|
* Hook up the send queue and create a federation sender workerErik Johnston2016-11-161-0/+7
|
* Add some invalidations to a cache_streamErik Johnston2016-08-151-10/+22
|
* Don't hit DB for noop replications queriesErik Johnston2016-06-081-0/+3
|
* Add desc to get_presence_for_usersErik Johnston2016-05-181-0/+1
|
* Remove some unused functions (#711)Mark Haines2016-04-081-10/+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 idsMark Haines2016-04-011-2/+4
|
* 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.
* Create a new stream_id per presence updateErik Johnston2016-02-231-6/+9
|
* Prefix TS fields with _tsErik Johnston2016-02-181-11/+12
|
* Initial cutErik Johnston2016-02-171-50/+120
|
* Fix up logcontextsErik Johnston2016-02-081-2/+3
|
* Implement a _simple_select_many_batchErik Johnston2016-01-251-17/+18
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Bump size of get_presence_state cacheErik Johnston2015-08-181-1/+1
|
* Remember to invalidate cachesErik Johnston2015-08-171-2/+8
|
* Implement a batched presence_handler.get_state and use itErik Johnston2015-08-171-2/+4
|
* Add batched version of store.get_presence_stateErik Johnston2015-08-171-1/+19
|
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+2
|
* Change Cache to not use *args in its interfaceErik Johnston2015-08-071-2/+2
|
* Add a cache for getting the presence list for a userMark Haines2015-05-221-8/+27
|
* Implement or_ignore flag on insertsErik Johnston2015-04-071-0/+1
|
* Give sensible names for '_simple_...' transactionsErik Johnston2015-03-201-0/+11
|
* Tidy up _simple_... methodsErik Johnston2015-03-201-1/+0
|
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* retcols is mandatory. i have no idea how this could ever have worked?Matthew Hodgson2014-08-161-0/+1
|
* An initial hack at storing presence state-change mtimes in database and ↵Paul "LeoNerd" Evans2014-08-131-2/+3
| | | | presenting age durations to clients/federation events
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+103