forked-synapse/synapse/storage
Erik Johnston c43f751013
Optimize query for fetching to-device messages in /sync (#16805)
The current query supports passing in a list of users, which generates a
query using `user_id = ANY(..)`. This is generates a less efficient
query plan that is notably slower than a simple `user_id = ?` condition.

Note: The new function is mostly a copy and paste and then a
simplification of the existing function.
2024-01-11 13:37:57 +00:00
..
controllers Update license headers 2023-11-21 15:29:58 -05:00
databases Optimize query for fetching to-device messages in /sync (#16805) 2024-01-11 13:37:57 +00:00
engines Update license headers 2023-11-21 15:29:58 -05:00
schema Update book location 2023-12-13 16:15:22 +00:00
util Update license headers 2023-11-21 15:29:58 -05:00
__init__.py Update license headers 2023-11-21 15:29:58 -05:00
_base.py Update license headers 2023-11-21 15:29:58 -05:00
background_updates.py Update license headers 2023-11-21 15:29:58 -05:00
database.py Update license headers 2023-11-21 15:29:58 -05:00
keys.py Update license headers 2023-11-21 15:29:58 -05:00
prepare_database.py Update license headers 2023-11-21 15:29:58 -05:00
push_rule.py Update license headers 2023-11-21 15:29:58 -05:00
roommember.py Update license headers 2023-11-21 15:29:58 -05:00
types.py Update license headers 2023-11-21 15:29:58 -05:00