- Nov 15, 2023
-
-
Patrick Cloke authored
-
- Nov 14, 2023
-
-
Will Hunt authored
-
- Nov 13, 2023
-
-
Nick Mills-Barrett authored
The statements are already executed within a transaction thus a table level lock is unnecessary.
-
reivilibre authored
Add a Postgres `REPLICA IDENTITY` to tables that do not have an implicit one. This should allow use of Postgres logical replication. (#16456) * Add Postgres replica identities to tables that don't have an implicit one Fixes #16224 * Newsfile Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Move the delta to version 83 as we missed the boat for 82 * Add a test that all tables have a REPLICA IDENTITY * Extend the test to include when indices are deleted * isort * black * Fully qualify `oid` as it is a 'hidden attribute' in Postgres 11 * Update tests/storage/test_database.py Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> * Add missed tables --------- Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org> Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
David Robertson authored
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Nov 09, 2023
-
-
Patrick Cloke authored
To avoid asserting the type of the database connection.
-
reivilibre authored
Fix a long-standing bug where Synapse would not unbind third-party identifiers for Application Service users when deactivated and would not emit a compliant response. (#16617) * Don't skip unbinding 3PIDs and returning success status when deactivating AS user Fixes #16608 * Newsfile Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
-
Patrick Cloke authored
-
Patrick Cloke authored
This takes advantage of the new bulk method in more places to invalidate caches for many keys at once (and then to stream that over replication).
-
Patrick Cloke authored
-
Patrick Cloke authored
-
David Robertson authored
Co-authored-by:
Patrick Cloke <patrickc@matrix.org>
-
- Nov 08, 2023
-
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Nov 07, 2023
-
-
Patrick Cloke authored
simple_update_many_txn had a bug in it which would cause each update to be applied twice.
-
Patrick Cloke authored
If simple_{insert,upsert,update}_many_txn is called without any data to modify then return instead of executing the query. This matches the behavior of simple_{select,delete}_many_txn.
-
Patrick Cloke authored
Expand tests for the simple_* database methods, additionally test against both PostgreSQL and SQLite variants.
-
- Nov 06, 2023
-
-
Patrick Cloke authored
Fetch information needed for push rule evaluation in parallel. Ideally this would use query pipelining, but this is not available in psycopg2. Due to the database thread pool this may result in little to no parallelization.
-
Patrick Cloke authored
-
Patrick Cloke authored
Previously only Twisted's EPollReactor was compatible with the reactor timing metric, notably not working when asyncio was used. After this change, the following configurations support the reactor timing metric: * poll, epoll, or select reactors * asyncio reactor with a poll, epoll, select, /dev/poll, or kqueue event loop.
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Nov 03, 2023
-
-
Patrick Cloke authored
The event persistence code used to handle multiple rooms at a time, but was simplified to only ever be called with a single room at a time (different rooms are now handled in parallel). The code is still generic to multiple rooms causing a lot of work that is unnecessary (e.g. unnecessary loops, and partitioning data by room). This strips out the ability to handle multiple rooms at once, greatly simplifying the code.
-
- Nov 02, 2023
-
-
Patrick Cloke authored
Just to standardize on the normal helpers, it might also have a slight perf improvement on PostgreSQL which will now use `ANY (?)` instead of `IN (?, ?, ...)`.
-
- Nov 01, 2023
-
-
dependabot[bot] authored
-
- Oct 31, 2023
-
-
Patrick Cloke authored
getfullargspec is relatively expensive and the results will not change between calls, so precalculate it outside the wrapper.
-
Patrick Cloke authored
-
Erik Johnston authored
-
Patrick Cloke authored
-
Erik Johnston authored
-
Erik Johnston authored
-