Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reduce serialization errors in MultiWriterIdGen (#8456) | Erik Johnston | 2020-10-07 | 1 | -3/+60 |
| | | | | | | | We call `_update_stream_positions_table_txn` a lot, which is an UPSERT that can conflict in `REPEATABLE READ` isolation level. Instead of doing a transaction consisting of a single query we may as well run it outside of a transaction. | ||||
* | Catch-up after Federation Outage (split, 1) (#8230) | reivilibre | 2020-09-04 | 1 | -2/+2 |
| | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | Fix type signature in simple_select_one_onecol and friends (#8241) | reivilibre | 2020-09-04 | 1 | -10/+7 |
| | | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -2/+2 |
| | |||||
* | Add an overload for simple_select_one_onecol_txn. (#8235) | Patrick Cloke | 2020-09-02 | 1 | -0/+24 |
| | |||||
* | Convert runInteraction to async/await (#8156) | Patrick Cloke | 2020-09-02 | 1 | -15/+14 |
| | |||||
* | Add StreamStore to mypy (#8232) | Erik Johnston | 2020-09-02 | 1 | -0/+34 |
| | |||||
* | Convert simple_delete to async/await. (#8191) | Patrick Cloke | 2020-08-27 | 1 | -8/+55 |
| | |||||
* | simple_search_list_txn should return None, not 0. (#8187) | Patrick Cloke | 2020-08-27 | 1 | -4/+3 |
| | |||||
* | Convert additional database methods to async (select list, search, ↵ | Patrick Cloke | 2020-08-27 | 1 | -62/+37 |
| | | | | insert_many, delete_*) (#8168) | ||||
* | Convert simple_update* and simple_select* to async (#8173) | Patrick Cloke | 2020-08-27 | 1 | -14/+15 |
| | |||||
* | Convert simple_select_one and simple_select_one_onecol to async (#8162) | Patrick Cloke | 2020-08-26 | 1 | -6/+30 |
| | |||||
* | Add more types to synapse.storage.database. (#8127) | Patrick Cloke | 2020-08-20 | 1 | -219/+358 |
| | |||||
* | Convert runWithConnection to async. (#8121) | Patrick Cloke | 2020-08-19 | 1 | -14/+13 |
| | |||||
* | Convert some of the general database methods to async (#8100) | Patrick Cloke | 2020-08-17 | 1 | -14/+9 |
| | |||||
* | Rename database classes to make some sense (#8033) | Erik Johnston | 2020-08-05 | 1 | -1/+1 |
| | |||||
* | Move some log lines from default logger to sql/transaction loggers (#7952) | Andrew Morgan | 2020-07-28 | 1 | -8/+10 |
| | | | Idea from matrix-org/synapse-dinsic#49 | ||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -2/+1 |
| | |||||
* | Replace iteritems/itervalues/iterkeys with native versions. (#7692) | Patrick Cloke | 2020-06-15 | 1 | -7/+6 |
| | |||||
* | Replace device_27_unique_idx bg update with a fg one (#7562) | Richard van der Hoff | 2020-05-26 | 1 | -1/+0 |
| | | | | | | The bg update never managed to complete, because it kept being interrupted by transactions which want to take a lock. Just doing it in the foreground isn't that bad, and is a good deal simpler. | ||||
* | Remove `exception_to_unicode` | Richard van der Hoff | 2020-05-15 | 1 | -12/+3 |
| | | | | this is a no-op on python 3. | ||||
* | Fix new flake8 errors (#7470) | Erik Johnston | 2020-05-12 | 1 | -2/+2 |
| | |||||
* | use an upsert to update device_lists_outbound_last_success | Richard van der Hoff | 2020-05-06 | 1 | -0/+1 |
| | |||||
* | Better type annotations for simple_upsert_txn | Richard van der Hoff | 2020-05-06 | 1 | -30/+43 |
| | | | | most of these params don't really need to be lists. | ||||
* | bg update to clear out duplicate outbound_device_list_pokes (#7193) | Richard van der Hoff | 2020-04-07 | 1 | -1/+82 |
| | | | | We seem to have some duplicates, which could do with being cleared out. | ||||
* | Clean up some LoggingContext stuff (#7120) | Richard van der Hoff | 2020-03-24 | 1 | -6/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | * Pull Sentinel out of LoggingContext ... and drop a few unnecessary references to it * Factor out LoggingContext.current_context move `current_context` and `set_context` out to top-level functions. Mostly this means that I can more easily trace what's actually referring to LoggingContext, but I think it's generally neater. * move copy-to-parent into `stop` this really just makes `start` and `stop` more symetric. It also means that it behaves correctly if you manually `set_log_context` rather than using the context manager. * Replace `LoggingContext.alive` with `finished` Turn `alive` into `finished` and make it a bit better defined. | ||||
* | Hopefully mypy is happy now | Brendan Abolivier | 2020-03-10 | 1 | -2/+8 |
| | |||||
* | Add some type annotations in `synapse.storage` (#6987) | Richard van der Hoff | 2020-02-27 | 1 | -59/+84 |
| | | | | | I cracked, and added some type definitions in synapse.storage. | ||||
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -2/+2 |
| | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | Minor perf fixes to `get_auth_chain_ids`. | Erik Johnston | 2020-02-19 | 1 | -1/+1 |
| | |||||
* | Reduce performance logging to DEBUG (#6833) | Michael Kaye | 2020-02-05 | 1 | -1/+1 |
| | | | | | * Reduce tnx performance logging to DEBUG * Changelog.d | ||||
* | Add database config class (#6513) | Erik Johnston | 2019-12-18 | 1 | -3/+42 |
| | | | | | This encapsulates config for a given database and is the way to get new connections. | ||||
* | Pass Database into the data store | Erik Johnston | 2019-12-06 | 1 | -22/+16 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-12-06 | 1 | -23/+28 |
| | | | | erikj/make_database_class | ||||
* | Remove unused var | Erik Johnston | 2019-12-06 | 1 | -2/+0 |
| | |||||
* | Move background update handling out of store | Erik Johnston | 2019-12-05 | 1 | -0/+3 |
| | |||||
* | Comments | Erik Johnston | 2019-12-05 | 1 | -0/+5 |
| | |||||
* | Move DB pool and helper functions into dedicated Database class | Erik Johnston | 2019-12-05 | 1 | -0/+1485 |