synapse-old/synapse/storage/databases/main
Erik Johnston eb0dbab15b
Fix database performance of read/write worker locks (#16061)
We were seeing serialization errors when taking out multiple read locks.

The transactions were retried, so isn't causing any failures.

Introduced in #15782.
2023-08-17 14:07:57 +01:00
..
__init__.py Actually stop reading from column `user_id` of tables `profiles` (#15955) 2023-07-23 16:30:54 -07:00
account_data.py Update code to refer to "workers". (#15606) 2023-05-16 15:56:38 -04:00
appservice.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
cache.py Remove old rows from the `cache_invalidation_stream_by_instance` table automatically. (This table is not used when Synapse is configured to use SQLite.) (#15868) 2023-08-08 11:10:07 +01:00
censor_events.py Safe async event cache (#13308) 2022-07-19 11:25:29 +00:00
client_ips.py Optimise `_update_client_ips_batch_txn` to batch together database operations. (#12252) 2022-04-08 15:29:13 +01:00
deviceinbox.py to_device updates could be dropped when consuming the replication stream (#15349) 2023-03-30 19:41:14 +02:00
devices.py Support MSC3814: Dehydrated Devices Part 2 (#16010) 2023-08-08 12:04:46 -07:00
directory.py Load `/directory/room/{roomAlias}` endpoint on workers (#15333) 2023-04-14 10:24:06 +01:00
e2e_room_keys.py Delete server-side backup keys when deactivating an account. (#15181) 2023-04-04 20:16:08 +00:00
end_to_end_keys.py Support MSC3814: Dehydrated Devices Part 2 (#16010) 2023-08-08 12:04:46 -07:00
event_federation.py Inline SQL queries using boolean parameters (#15525) 2023-07-26 18:45:47 +00:00
event_push_actions.py Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15597) 2023-05-26 13:16:08 -04:00
events.py Stabilize support for MSC3970: updated transaction semantics (scope to `device_id`) (#15629) 2023-08-04 07:47:18 -04:00
events_bg_updates.py Remove support for aggregating reactions (#15172) 2023-02-28 18:49:28 +00:00
events_forward_extremities.py Fix returned count of delete extremities admin API (#12496) 2022-04-19 16:49:45 +01:00
events_worker.py Prefill events after invalidate not before when persisting events (#15758) 2023-06-14 09:42:18 +01:00
experimental_features.py Add an admin API endpoint to support per-user feature flags (#15344) 2023-04-28 11:33:45 -07:00
filtering.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
keys.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
lock.py Fix database performance of read/write worker locks (#16061) 2023-08-17 14:07:57 +01:00
media_repository.py Add tracing to media `/upload` endpoint (#15850) 2023-07-05 10:22:21 -05:00
metrics.py Remove old R30 because R30v2 supercedes it (#10428) 2023-05-19 11:13:44 -05:00
monthly_active_users.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
openid.py Add type hints to some storage classes (#11307) 2021-11-11 08:47:31 -05:00
presence.py Fix could not serialize access due to concurrent `DELETE` from presence_stream (#15826) 2023-07-05 11:44:02 +01:00
profile.py Revert "Stop writing to column `user_id` of tables `profiles` and `user_filters`. (#15953) 2023-07-18 11:44:09 +01:00
purge_events.py Inline SQL queries using boolean parameters (#15525) 2023-07-26 18:45:47 +00:00
push_rule.py Inline SQL queries using boolean parameters (#15525) 2023-07-26 18:45:47 +00:00
pusher.py Fix the 'set_device_id_for_pushers_txn' background update. (#15391) 2023-04-05 07:49:15 -04:00
receipts.py Update code to refer to "workers". (#15606) 2023-05-16 15:56:38 -04:00
registration.py Implements admin API to lock an user (MSC3939) (#15870) 2023-08-10 09:10:55 +00:00
rejections.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py Add a catch-all * to the supported relation types when redacting (#15705) 2023-06-02 13:13:50 +00:00
room.py Inline SQL queries using boolean parameters (#15525) 2023-07-26 18:45:47 +00:00
roommember.py Speed up updating state in large rooms (#15971) 2023-07-20 15:51:28 +01:00
search.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
session.py Run `pyupgrade --py37-plus --keep-percent-format` on Synapse (#11685) 2022-01-05 09:53:05 -08:00
signatures.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
state.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
state_deltas.py Wait for lazy join to complete when getting current state (#12872) 2022-06-01 16:02:53 +01:00
stats.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
stream.py Inline SQL queries using boolean parameters (#15525) 2023-07-26 18:45:47 +00:00
tags.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
transactions.py Remove unused store method `_set_destination_retry_timings_emulated`. (#15266) 2023-03-14 17:32:46 +00:00
ui_auth.py Add some type hints to datastore (#12485) 2022-04-27 13:05:00 +01:00
user_directory.py Implements admin API to lock an user (MSC3939) (#15870) 2023-08-10 09:10:55 +00:00
user_erasure_store.py Annotations for user_erasure_store (#11313) 2021-11-11 19:22:19 +00:00