summary refs log tree commit diff
path: root/synapse/storage/engines/_base.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Delete device messages asynchronously and in staged batches (#16240)Mathieu Velten2023-09-061-0/+6
|
* Run pyupgrade for python 3.7 & 3.8. (#16110)Patrick Cloke2023-08-151-1/+1
|
* Make sqlite database migrations transactional again, part two (#14926)Sean Quah2023-01-311-2/+3
| | | | | | | | | | | | | | | | #14910 fixed the regression introduced by #13873 where sqlite database migrations would no longer run inside a transaction. However, it committed the transaction before Synapse updated its bookkeeping of which migrations have been run, which means that migrations may be run again after they have completed successfully. Leave the transaction open at the end of `executescript`, to restore the old, correct behaviour. Also make the PostgreSQL behaviour consistent with SQLite. Fixes #14909. Signed-off-by: Sean Quah <seanq@matrix.org>
* Make sqlite database migrations transactional again (#14910)Sean Quah2023-01-251-0/+3
| | | | | | | | | | #13873 introduced a regression which causes sqlite database migrations to no longer run inside a transaction. Wrap them in a transaction again, to avoid database corruption when migrations are interrupted. Fixes #14909. Signed-off-by: Sean Quah <seanq@matrix.org>
* Snapshot schema 72 (#13873)David Robertson2022-09-261-2/+21
| | | Including another batch of fixes to the schema dump script
* Require SQLite >= 3.27.0 (#13760)David Robertson2022-09-091-8/+0
|
* Tidy up and type-hint the database engine modules (#12734)David Robertson2022-05-171-10/+16
| | | Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
* Db txn set isolation level (#11799)Nick Barrett2022-01-251-1/+18
| | | Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
* Fix the inbound PDU metric (#10279)Erik Johnston2021-06-301-0/+6
| | | This broke in #10272
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Drop support for sqlite<3.22 as wellRichard van der Hoff2021-04-081-8/+0
|
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-4/+2
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Reduce serialization errors in MultiWriterIdGen (#8456)Erik Johnston2020-10-071-0/+17
| | | | | | 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.
* Use SequenceGenerator for state group ID allocationRichard van der Hoff2020-07-161-6/+0
|
* Add some type annotations in `synapse.storage` (#6987)Richard van der Hoff2020-02-271-0/+87
| | | | | I cracked, and added some type definitions in synapse.storage.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Check that postgres database has correct charset setErik Johnston2015-04-291-0/+18