forked-synapse/synapse/storage/databases/main
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
..
__init__.py Update license headers 2023-11-21 15:29:58 -05:00
account_data.py Update license headers 2023-11-21 15:29:58 -05:00
appservice.py Update license headers 2023-11-21 15:29:58 -05:00
cache.py Update license headers 2023-11-21 15:29:58 -05:00
censor_events.py Update license headers 2023-11-21 15:29:58 -05:00
client_ips.py Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
deviceinbox.py Optimize query for fetching to-device messages in /sync (#16805) 2024-01-11 13:37:57 +00:00
devices.py Split up deleting devices into batches (#16766) 2024-01-10 13:55:16 +00:00
directory.py Update license headers 2023-11-21 15:29:58 -05:00
e2e_room_keys.py Update license headers 2023-11-21 15:29:58 -05:00
end_to_end_keys.py Update license headers 2023-11-21 15:29:58 -05:00
event_federation.py Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
event_push_actions.py Improve DB performance of calculating badge counts for push. (#16756) 2024-01-11 11:52:13 +00:00
events_bg_updates.py Update license headers 2023-11-21 15:29:58 -05:00
events_forward_extremities.py Update license headers 2023-11-21 15:29:58 -05:00
events_worker.py Port EventInternalMetadata class to Rust (#16782) 2024-01-08 14:06:48 +00:00
events.py Update license headers 2023-11-21 15:29:58 -05:00
experimental_features.py Update license headers 2023-11-21 15:29:58 -05:00
filtering.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
lock.py Update license headers 2023-11-21 15:29:58 -05:00
media_repository.py Update license headers 2023-11-21 15:29:58 -05:00
metrics.py Update license headers 2023-11-21 15:29:58 -05:00
monthly_active_users.py Update license headers 2023-11-21 15:29:58 -05:00
openid.py Update license headers 2023-11-21 15:29:58 -05:00
presence.py Update license headers 2023-11-21 15:29:58 -05:00
profile.py Update license headers 2023-11-21 15:29:58 -05:00
purge_events.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
pusher.py Update license headers 2023-11-21 15:29:58 -05:00
receipts.py Update license headers 2023-11-21 15:29:58 -05:00
registration.py Update license headers 2023-11-21 15:29:58 -05:00
rejections.py Update license headers 2023-11-21 15:29:58 -05:00
relations.py Update license headers 2023-11-21 15:29:58 -05:00
room.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
search.py Update license headers 2023-11-21 15:29:58 -05:00
session.py Update license headers 2023-11-21 15:29:58 -05:00
signatures.py Update license headers 2023-11-21 15:29:58 -05:00
state_deltas.py Update license headers 2023-11-21 15:29:58 -05:00
state.py Faster load recents for sync (#16783) 2024-01-10 15:11:59 +00:00
stats.py Update license headers 2023-11-21 15:29:58 -05:00
stream.py Simplify internal metadata class. (#16762) 2024-01-05 13:03:20 +00:00
tags.py Update license headers 2023-11-21 15:29:58 -05:00
task_scheduler.py Update license headers 2023-11-21 15:29:58 -05:00
transactions.py Update license headers 2023-11-21 15:29:58 -05:00
ui_auth.py Update license headers 2023-11-21 15:29:58 -05:00
user_directory.py Update license headers 2023-11-21 15:29:58 -05:00
user_erasure_store.py Update license headers 2023-11-21 15:29:58 -05:00