summary refs log tree commit diff
path: root/synapse/util/async_helpers.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2025-02-07 11:18:32 +0100
committerGitHub <noreply@github.com>2025-02-07 10:18:32 +0000
commitdcf7b392762067e5ee264df629b2ea65b3473609 (patch)
treed6bc6b8cf457dcd92aee5b476682591805ee00b3 /synapse/util/async_helpers.py
parent1.124.0rc2 (diff)
downloadsynapse-dcf7b392762067e5ee264df629b2ea65b3473609.tar.xz
Fix performance of `check_state_groups_and_bump_deletion` (#18141)
Regressed as part of https://github.com/element-hq/synapse/pull/18107

This does two things:
1. Only check if the state groups have been deleted when calculating the
event context (as that's when we will insert them). This avoids lots of
checks for read operations.
2. Don't lock the `state_groups` rows when doing the check. This adds
overhead, and it doesn't prevent any races.
Diffstat (limited to 'synapse/util/async_helpers.py')
0 files changed, 0 insertions, 0 deletions