summary refs log tree commit diff
path: root/changelog.d/3726.misc
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@arasphere.net>2018-08-22 00:56:37 +0200
committerGitHub <noreply@github.com>2018-08-22 00:56:37 +0200
commitbb81e78ec6c05edc95b25a954bdf1cf688d4d652 (patch)
tree38db70577210029cffaa7211fdeaa962f0013e6d /changelog.d/3726.misc
parentMerge tag 'v0.33.3rc2' into develop (diff)
downloadsynapse-bb81e78ec6c05edc95b25a954bdf1cf688d4d652.tar.xz
Split the state_group_cache in two (#3726)
Splits the state_group_cache in two.

One half contains normal state events; the other contains member events.

The idea is that the lazyloading common case of: "I want a subset of member events plus all of the other state" can be accomplished efficiently by splitting the cache into two, and asking for "all events" from the non-members cache, and "just these keys" from the members cache.  This means we can avoid having to make DictionaryCache aware of these sort of complicated queries, whilst letting LL requests benefit from the caching.

Previously we were unable to sensibly use the caching and had to pull all state from the DB irrespective of the filtering, which made things slow.  Hopefully fixes https://github.com/matrix-org/synapse/issues/3720.
Diffstat (limited to 'changelog.d/3726.misc')
-rw-r--r--changelog.d/3726.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/3726.misc b/changelog.d/3726.misc
new file mode 100644
index 0000000000..c4f66ec998
--- /dev/null
+++ b/changelog.d/3726.misc
@@ -0,0 +1 @@
+Split the state_group_cache into member and non-member state events (and so speed up LL /sync)