diff options
author | Erik Johnston <erik@matrix.org> | 2018-07-17 10:27:51 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-07-17 10:27:51 +0100 |
commit | 547b1355d3747b267db3e21aefd143382f49f4ec (patch) | |
tree | ac4fbb3cb89b3b72d1f87d20cf0565db8c4c011a /synapse/util/caches | |
parent | Merge pull request #3530 from matrix-org/erikj/stream_cache (diff) | |
download | synapse-547b1355d3747b267db3e21aefd143382f49f4ec.tar.xz |
Fix perf regression in PR #3530
The get_entities_changed function was changed to return all changed entities since the given stream position, rather than only those changed from a given list of entities. This resulted in the function incorrectly returning large numbers of entities that, for example, caused large increases in database usage.
Diffstat (limited to 'synapse/util/caches')
-rw-r--r-- | synapse/util/caches/stream_change_cache.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/util/caches/stream_change_cache.py b/synapse/util/caches/stream_change_cache.py |