diff options
| author | Erik Johnston <erikj@element.io> | 2024-01-23 11:37:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-23 11:37:16 +0000 |
| commit | c925b4556798539d172664ed69734c8611f669d2 (patch) | |
| tree | 7406bfa72116da736caf2ec6af4876a8df9ff5ca /synapse | |
| parent | Correctly mention previous copyright (#16820) (diff) | |
| download | synapse-c925b4556798539d172664ed69734c8611f669d2.tar.xz | |
Speed up e2e device keys queries for bot accounts (#16841)
This helps with bot accounts with lots of non-e2e devices. The change is basically to change the order of the join for the case of using `INNER JOIN`
Diffstat (limited to 'synapse')
| -rw-r--r-- | synapse/storage/databases/main/end_to_end_keys.py | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/synapse/storage/databases/main/end_to_end_keys.py b/synapse/storage/databases/main/end_to_end_keys.py |
