summary refs log tree commit diff
path: root/synapse/storage/transactions.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace ujson with simplejsonErik Johnston2018-03-151-1/+1
|
* Make __init__ consitstent across Store heirarchyRichard van der Hoff2017-11-131-2/+2
| | | | | | Add db_conn parameters to the `__init__` methods of the *Store classes, so that they are all consistent, which makes the multiple inheritance work correctly (and so that we can later extract mixins which can be used in the slavedstores)
* Fix tests and flake8Erik Johnston2016-11-221-1/+0
|
* Invalidate retry cache in both directionsErik Johnston2016-11-221-12/+36
|
* Continue to clean up received_transactionsErik Johnston2016-11-011-0/+14
|
* Removed unused stuffErik Johnston2016-10-311-163/+3
|
* Increase batching of sent transaction insertsErik Johnston2016-10-311-1/+1
| | | | | | This should further reduce the number of individual inserts, transactions and updates that are required for keeping sent_transactions up to date.
* Bump max_entries on get_destination_retry_timingsErik Johnston2016-09-021-1/+1
|
* Clean up old sent transactionsErik Johnston2016-08-311-0/+2
|
* Delete old received_transactionsErik Johnston2016-08-221-4/+13
|
* Fix a couple of bugs in the transaction and keyring codeMark Haines2016-07-261-1/+2
|
* Pull prev txn from in memoryErik Johnston2016-05-061-5/+13
|
* Don't needlessly enter transactionErik Johnston2016-05-061-9/+9
|
* Reduce database inserts when sending transactionsErik Johnston2016-05-061-44/+113
|
* Load the current id in the IdGenerator constructorMark Haines2016-03-011-1/+1
| | | | | | | | | 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.
* Delete the table objects from TransactionStoreMark Haines2016-01-131-58/+10
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Fix bug where assumed dict was namedtupleErik Johnston2015-11-121-1/+1
|
* Fix broken cache for getting retry times. This meant we retried remote ↵Erik Johnston2015-11-031-32/+16
| | | | destinations way more frequently than we should
* Remove syutil dependency in favour of smaller single-purpose librariesMark Haines2015-08-241-1/+1
|
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+2
|
* And use buffer(...) there as wellErik Johnston2015-05-051-1/+2
|
* Use buffer(...) when inserting into bytea columnErik Johnston2015-05-051-1/+2
|
* Shuffle operations so that locking upsert happens last in the txn. This ↵Erik Johnston2015-04-271-15/+6
| | | | ensures the lock is held for the least amount of time possible.
* Turn off persistance of sent_transactions.response_jsonErik Johnston2015-04-151-1/+1
|
* PEP8Erik Johnston2015-04-071-1/+0
|
* Don't use AUTOINCREMENT, use an in memory versionErik Johnston2015-04-071-1/+3
|
* Fix unicode database supportErik Johnston2015-03-251-1/+1
|
* Fix bugs in transactions storageErik Johnston2015-03-241-2/+3
|
* Use _simple_upsertErik Johnston2015-03-241-2/+2
|
* Use 'update or insert' rather than on 'conflict replace'Erik Johnston2015-03-231-10/+17
|
* Sanitize TransactionStoreErik Johnston2015-03-231-87/+104
|
* Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-03-201-8/+12
|\
| * Start removing TablesErik Johnston2015-03-201-8/+12
| |
* | Generate transaction id in codeErik Johnston2015-03-201-1/+1
| |
* | decode_result takes an iterableErik Johnston2015-03-201-1/+1
| |
* | Convert storage layer to be mysql compatibleErik Johnston2015-03-191-3/+3
|/
* Remove unused importMark Haines2015-02-231-2/+0
|
* Use the @cached decorator to implement the destination_retry_timings cachePaul "LeoNerd" Evans2015-02-231-9/+5
|
* Add index on transaction_id to sent_transcationsErik Johnston2015-01-061-4/+0
|
* Actually time that functionErik Johnston2015-01-061-0/+1
|
* Time how long calls to _get_destination_retry_timings takeErik Johnston2015-01-061-0/+3
|
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Code style.Erik Johnston2014-12-101-21/+29
|
* squidge to 79 columns as per pep8Matthew Hodgson2014-12-101-6/+12
|
* fix a million stupid bugs and make it actually workMatthew Hodgson2014-12-081-11/+14
|
* add a write-through cache on the retry scheduleMatthew Hodgson2014-12-081-4/+15
|
* fix stupid syntax thinkosMatthew Hodgson2014-12-071-1/+1
|
* track replication destination health, and perform exponential back-off when ↵Matthew Hodgson2014-12-071-1/+77
| | | | sending transactions. does *not* yet retry transactions, but drops them on the floor if waiting for a server to recover.
* For now, don't store txn -> pdu mappings.Erik Johnston2014-11-031-4/+3
|
* Remove PDU tables.Erik Johnston2014-10-311-45/+0
|
* Don't store any PDUsErik Johnston2014-10-311-9/+9
|
* Add transaction level logging and timing information. Add a _simple_delete ↵Erik Johnston2014-10-281-0/+6
| | | | method
* keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating ↵Mark Haines2014-10-171-6/+7
| | | | schema
* SPEC-7: Rename 'ts' to 'origin_server_ts'Mark Haines2014-10-171-7/+7
|
* Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_poolPaul "LeoNerd" Evans2014-09-121-6/+6
|
* 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.
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+287