This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Optimize /backfill
to respond faster
#15653
Labels
A-Federation
A-Messages-Endpoint
/messages client API endpoint (`RoomMessageListRestServlet`) (which also triggers /backfill)
A-Performance
Performance, both client-facing and admin-facing
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Milestone
Since
/backfill
is a big part of/messages
performance, optimizing/backfill
would help other servers respond to our/backfill
requests faster which means we can respond to/messages
faster.From the examples below, it seems like we have these obvious opportunities to improve:
get_backfill_events(...)
: Seems like a pretty slow query that we could probably turn into a recursive query.get_current_state
->get_filtered_current_state_ids
: Takes ~200msis_host_joined
: uncached call took ~200ms_get_state_groups_from_groups(...)
: A known slow thingfilter_events_for_client
for faster/messages
- v2 #14527state_group
(_get_state_groups_from_groups
) #156173.45s
/backfill?limit=100
request934ms
/backfill?limit=100
requestThe text was updated successfully, but these errors were encountered: