forked-synapse/synapse/storage/databases/main
Patrick Cloke fa907025f4
Remove manys calls to cursor_to_dict (#16431)
This avoids calling cursor_to_dict and then immediately
unpacking the values in the dict for other users. By not
creating the intermediate dictionary we can avoid allocating
the dictionary and strings for the keys, which should generally
be more performant.

Additionally this improves type hints by avoid Dict[str, Any]
dictionaries coming out of the database layer.
2023-10-05 11:07:38 -04:00
..
__init__.py Filter locked users in the admin API (#16328) 2023-09-18 15:37:51 +01:00
account_data.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
appservice.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
cache.py Revert MSC3861 introspection cache, admin impersonation and account lock (#16258) 2023-09-06 15:19:51 +01:00
censor_events.py Safe async event cache (#13308) 2022-07-19 11:25:29 +00:00
client_ips.py Refactor get_user_by_id (#16316) 2023-09-14 12:46:30 +01:00
deviceinbox.py Delete device messages asynchronously and in staged batches (#16240) 2023-09-06 09:30:53 +02:00
devices.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
directory.py Load /directory/room/{roomAlias} endpoint on workers (#15333) 2023-04-14 10:24:06 +01:00
e2e_room_keys.py Some refactors around receipts stream (#16426) 2023-10-04 16:28:40 +01:00
end_to_end_keys.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
event_federation.py Return an immutable value from get_latest_event_ids_in_room. (#16326) 2023-09-18 09:29:05 -04:00
event_push_actions.py mypy plugin to check @cached return types (#14911) 2023-10-02 14:22:36 +00: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 Return immutable objects for cachedList decorators (#16350) 2023-09-19 15:26:44 -04:00
events.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
experimental_features.py Make cached account data/tags/admin types immutable (#16325) 2023-09-18 09:55:04 -04:00
filtering.py Convert more cached return values to immutable types (#16356) 2023-09-20 07:48:55 -04:00
keys.py Return immutable objects for cachedList decorators (#16350) 2023-09-19 15:26:44 -04:00
lock.py Fix rare bug that broke looping calls (#16210) 2023-08-30 14:18:42 +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 Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04: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 Stop purging tables which are slated for removal. (#16273) 2023-09-12 07:12:31 -04:00
push_rule.py Implement MSC4028: push all encrypted events. (#16361) 2023-09-26 11:52:19 -04:00
pusher.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
receipts.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
registration.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
rejections.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py mypy plugin to check @cached return types (#14911) 2023-10-02 14:22:36 +00:00
room.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
roommember.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
search.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04: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_deltas.py Wait for lazy join to complete when getting current state (#12872) 2022-06-01 16:02:53 +01:00
state.py Return immutable objects for cachedList decorators (#16350) 2023-09-19 15:26:44 -04:00
stats.py Filter locked users in the admin API (#16328) 2023-09-18 15:37:51 +01:00
stream.py Factor out MultiWriter token from RoomStreamToken (#16427) 2023-10-05 10:46:28 +01:00
tags.py Make cached account data/tags/admin types immutable (#16325) 2023-09-18 09:55:04 -04:00
task_scheduler.py Remove manys calls to cursor_to_dict (#16431) 2023-10-05 11:07:38 -04:00
transactions.py Return immutable objects for cachedList decorators (#16350) 2023-09-19 15:26:44 -04: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 Return immutable objects for cachedList decorators (#16350) 2023-09-19 15:26:44 -04:00