MatrixSynapse/synapse/util/caches
Patrick Cloke 1799a54a54
Batch fetch bundled annotations (#14491)
Avoid an n+1 query problem and fetch the bundled aggregations for
m.annotation relations in a single query instead of a query per event.

This applies similar logic for as was previously done for edits in
8b309adb43 (#11660) and threads
in b65acead42 (#11752).
2022-11-22 07:26:11 -05:00
..
__init__.py Remove redundant types from comments. (#14412) 2022-11-16 15:25:24 +00:00
cached_call.py Add missing type hints to `synapse.logging.context` (#11556) 2021-12-14 17:35:28 +00:00
deferred_cache.py Remove redundant types from comments. (#14412) 2022-11-16 15:25:24 +00:00
descriptors.py Batch fetch bundled annotations (#14491) 2022-11-22 07:26:11 -05:00
dictionary_cache.py Remove redundant types from comments. (#14412) 2022-11-16 15:25:24 +00:00
expiringcache.py Remove redundant types from comments. (#14412) 2022-11-16 15:25:24 +00:00
lrucache.py Remove redundant types from comments. (#14412) 2022-11-16 15:25:24 +00:00
response_cache.py Improve opentracing support for `ResponseCache` (#11607) 2021-12-20 18:12:08 +00:00
stream_change_cache.py Remove duplicated code to evict entries. (#14410) 2022-11-10 15:33:34 -05:00
treecache.py Speed up `@cachedList` (#13591) 2022-08-23 14:53:27 +00:00
ttlcache.py Remove unused `# type: ignore`s (#12531) 2022-04-27 14:03:44 +01:00