MatrixSynapse/synapse/storage/databases/main
Sean Quah d0c713cc85
Return read-only collections from `@cached` methods (#13755)
It's important that collections returned from `@cached` methods are not
modified, otherwise future retrievals from the cache will return the
modified collection.

This applies to the return values from `@cached` methods and the values
inside the dictionaries returned by `@cachedList` methods. It's not
necessary for the dictionaries returned by `@cachedList` methods
themselves to be read-only.

Signed-off-by: Sean Quah <seanq@matrix.org>
Co-authored-by: David Robertson <davidr@element.io>
2023-02-10 23:29:00 +00:00
..
__init__.py Add helper to parse an enum from query args & use it. (#14956) 2023-02-01 21:35:24 +00:00
account_data.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
appservice.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
cache.py
censor_events.py
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
devices.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
directory.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
e2e_room_keys.py
end_to_end_keys.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
event_federation.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
event_push_actions.py
events.py Add final type hint to synapse.server. (#15035) 2023-02-09 09:49:04 -05:00
events_bg_updates.py Revert "Add `event_stream_ordering` column to membership state tables (#14979)" 2023-02-07 15:26:55 +00:00
events_forward_extremities.py
events_worker.py Disambiguate `get_ex_outlier_stream_rows` query 2023-02-07 15:33:33 +00:00
filtering.py
keys.py
lock.py
media_repository.py Add helper to parse an enum from query args & use it. (#14956) 2023-02-01 21:35:24 +00:00
metrics.py
monthly_active_users.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
openid.py
presence.py
profile.py
purge_events.py
push_rule.py Implement MSC3958: suppress notifications from edits (#14960) 2023-02-03 14:31:14 -05:00
pusher.py
receipts.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
registration.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
rejections.py
relations.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
room.py Faster joins: Refactor handling of servers in room (#14954) 2023-02-03 15:39:59 +00:00
room_batch.py
roommember.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
search.py
session.py
signatures.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
state.py
state_deltas.py
stats.py Add helper to parse an enum from query args & use it. (#14956) 2023-02-01 21:35:24 +00:00
stream.py
tags.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
transactions.py Add helper to parse an enum from query args & use it. (#14956) 2023-02-01 21:35:24 +00:00
ui_auth.py
user_directory.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
user_erasure_store.py