Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase ↵ | Amber Brown | 2018-10-20 | 1 | -1/+1 |
| | | | | on py3) (#4068) | ||||
* | Fix bug when invalidating destination retry timings | Erik Johnston | 2018-10-02 | 1 | -1/+1 |
| | |||||
* | Add a five minute cache to get_destination_retry_timings | Erik Johnston | 2018-09-21 | 1 | -1/+22 |
| | | | | Hopefully helps with #3931 | ||||
* | Fix up changelog and remove spurious comment | Erik Johnston | 2018-09-19 | 1 | -2/+0 |
| | |||||
* | pep8 | Erik Johnston | 2018-09-19 | 1 | -1/+0 |
| | |||||
* | Remove get_destination_retry_timings cache | Erik Johnston | 2018-09-19 | 1 | -5/+0 |
| | | | | | | | | Currently we rely on the master to invalidate this cache promptly. However, after having moved most federation endpoints off of master this no longer happens, causing outbound fedeariont to get blackholed. Fixes #3798 | ||||
* | Port storage/ to Python 3 (#3725) | Amber Brown | 2018-08-31 | 1 | -3/+4 |
| | |||||
* | Fix some looping_call calls which were broken in #3604 | Richard van der Hoff | 2018-07-26 | 1 | -1/+3 |
| | | | | | | | | | It turns out that looping_call does check the deferred returned by its callback, and (at least in the case of client_ips), we were relying on this, and I broke it in #3604. Update run_as_background_process to return the deferred, and make sure we return it to clock.looping_call. | ||||
* | Wrap a number of things that run in the background | Richard van der Hoff | 2018-07-25 | 1 | -1/+5 |
| | | | | | This will reduce the number of "Starting db connection from sentinel context" warnings, and will help with our metrics. | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -5/+6 |
| | |||||
* | Attempt to be more performant on PyPy (#3462) | Amber Brown | 2018-06-28 | 1 | -2/+1 |
| | |||||
* | add remaining memoryview changes | Adrian Tschira | 2018-05-29 | 1 | -1/+9 |
| | |||||
* | Replace ujson with simplejson | Erik Johnston | 2018-03-15 | 1 | -1/+1 |
| | |||||
* | Make __init__ consitstent across Store heirarchy | Richard van der Hoff | 2017-11-13 | 1 | -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 flake8 | Erik Johnston | 2016-11-22 | 1 | -1/+0 |
| | |||||
* | Invalidate retry cache in both directions | Erik Johnston | 2016-11-22 | 1 | -12/+36 |
| | |||||
* | Continue to clean up received_transactions | Erik Johnston | 2016-11-01 | 1 | -0/+14 |
| | |||||
* | Removed unused stuff | Erik Johnston | 2016-10-31 | 1 | -163/+3 |
| | |||||
* | Increase batching of sent transaction inserts | Erik Johnston | 2016-10-31 | 1 | -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_timings | Erik Johnston | 2016-09-02 | 1 | -1/+1 |
| | |||||
* | Clean up old sent transactions | Erik Johnston | 2016-08-31 | 1 | -0/+2 |
| | |||||
* | Delete old received_transactions | Erik Johnston | 2016-08-22 | 1 | -4/+13 |
| | |||||
* | Fix a couple of bugs in the transaction and keyring code | Mark Haines | 2016-07-26 | 1 | -1/+2 |
| | |||||
* | Pull prev txn from in memory | Erik Johnston | 2016-05-06 | 1 | -5/+13 |
| | |||||
* | Don't needlessly enter transaction | Erik Johnston | 2016-05-06 | 1 | -9/+9 |
| | |||||
* | Reduce database inserts when sending transactions | Erik Johnston | 2016-05-06 | 1 | -44/+113 |
| | |||||
* | Load the current id in the IdGenerator constructor | Mark Haines | 2016-03-01 | 1 | -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 TransactionStore | Mark Haines | 2016-01-13 | 1 | -58/+10 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Fix bug where assumed dict was namedtuple | Erik Johnston | 2015-11-12 | 1 | -1/+1 |
| | |||||
* | Fix broken cache for getting retry times. This meant we retried remote ↵ | Erik Johnston | 2015-11-03 | 1 | -32/+16 |
| | | | | destinations way more frequently than we should | ||||
* | Remove syutil dependency in favour of smaller single-purpose libraries | Mark Haines | 2015-08-24 | 1 | -1/+1 |
| | |||||
* | Move all the caches into their own package, synapse.util.caches | Erik Johnston | 2015-08-11 | 1 | -1/+2 |
| | |||||
* | And use buffer(...) there as well | Erik Johnston | 2015-05-05 | 1 | -1/+2 |
| | |||||
* | Use buffer(...) when inserting into bytea column | Erik Johnston | 2015-05-05 | 1 | -1/+2 |
| | |||||
* | Shuffle operations so that locking upsert happens last in the txn. This ↵ | Erik Johnston | 2015-04-27 | 1 | -15/+6 |
| | | | | ensures the lock is held for the least amount of time possible. | ||||
* | Turn off persistance of sent_transactions.response_json | Erik Johnston | 2015-04-15 | 1 | -1/+1 |
| | |||||
* | PEP8 | Erik Johnston | 2015-04-07 | 1 | -1/+0 |
| | |||||
* | Don't use AUTOINCREMENT, use an in memory version | Erik Johnston | 2015-04-07 | 1 | -1/+3 |
| | |||||
* | Fix unicode database support | Erik Johnston | 2015-03-25 | 1 | -1/+1 |
| | |||||
* | Fix bugs in transactions storage | Erik Johnston | 2015-03-24 | 1 | -2/+3 |
| | |||||
* | Use _simple_upsert | Erik Johnston | 2015-03-24 | 1 | -2/+2 |
| | |||||
* | Use 'update or insert' rather than on 'conflict replace' | Erik Johnston | 2015-03-23 | 1 | -10/+17 |
| | |||||
* | Sanitize TransactionStore | Erik Johnston | 2015-03-23 | 1 | -87/+104 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into mysql | Erik Johnston | 2015-03-20 | 1 | -8/+12 |
|\ | |||||
| * | Start removing Tables | Erik Johnston | 2015-03-20 | 1 | -8/+12 |
| | | |||||
* | | Generate transaction id in code | Erik Johnston | 2015-03-20 | 1 | -1/+1 |
| | | |||||
* | | decode_result takes an iterable | Erik Johnston | 2015-03-20 | 1 | -1/+1 |
| | | |||||
* | | Convert storage layer to be mysql compatible | Erik Johnston | 2015-03-19 | 1 | -3/+3 |
|/ | |||||
* | Remove unused import | Mark Haines | 2015-02-23 | 1 | -2/+0 |
| | |||||
* | Use the @cached decorator to implement the destination_retry_timings cache | Paul "LeoNerd" Evans | 2015-02-23 | 1 | -9/+5 |
| | |||||
* | Add index on transaction_id to sent_transcations | Erik Johnston | 2015-01-06 | 1 | -4/+0 |
| | |||||
* | Actually time that function | Erik Johnston | 2015-01-06 | 1 | -0/+1 |
| | |||||
* | Time how long calls to _get_destination_retry_timings take | Erik Johnston | 2015-01-06 | 1 | -0/+3 |
| | |||||
* | Update copyright notices | Mark Haines | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Code style. | Erik Johnston | 2014-12-10 | 1 | -21/+29 |
| | |||||
* | squidge to 79 columns as per pep8 | Matthew Hodgson | 2014-12-10 | 1 | -6/+12 |
| | |||||
* | fix a million stupid bugs and make it actually work | Matthew Hodgson | 2014-12-08 | 1 | -11/+14 |
| | |||||
* | add a write-through cache on the retry schedule | Matthew Hodgson | 2014-12-08 | 1 | -4/+15 |
| | |||||
* | fix stupid syntax thinkos | Matthew Hodgson | 2014-12-07 | 1 | -1/+1 |
| | |||||
* | track replication destination health, and perform exponential back-off when ↵ | Matthew Hodgson | 2014-12-07 | 1 | -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 Johnston | 2014-11-03 | 1 | -4/+3 |
| | |||||
* | Remove PDU tables. | Erik Johnston | 2014-10-31 | 1 | -45/+0 |
| | |||||
* | Don't store any PDUs | Erik Johnston | 2014-10-31 | 1 | -9/+9 |
| | |||||
* | Add transaction level logging and timing information. Add a _simple_delete ↵ | Erik Johnston | 2014-10-28 | 1 | -0/+6 |
| | | | | method | ||||
* | keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating ↵ | Mark Haines | 2014-10-17 | 1 | -6/+7 |
| | | | | schema | ||||
* | SPEC-7: Rename 'ts' to 'origin_server_ts' | Mark Haines | 2014-10-17 | 1 | -7/+7 |
| | |||||
* | Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool | Paul "LeoNerd" Evans | 2014-09-12 | 1 | -6/+6 |
| | |||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | add in whitespace after copyright statements to improve legibility | Matthew Hodgson | 2014-08-13 | 1 | -0/+1 |
| | |||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 1 | -0/+287 |