This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
have_seen_events
is eating up time while processing state and auth events while backfilling
#13625
Labels
A-Messages-Endpoint
/messages client API endpoint (`RoomMessageListRestServlet`) (which also triggers /backfill)
A-Performance
Performance, both client-facing and admin-facing
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Milestone
Mentioned in internal doc. Part of #13356
Optimize
have_seen_events
because when backfilling#matrix:matrix.org
, 20s is just callinghave_seen_events
on the 200k state and auth events in the room.have_seen_events
(157db.have_seen_events
) takes 6.62s to process 77k eventshave_seen_events
(246db.have_seen_events
) takes 13.19s to process 122k eventsBenchmark and timing is from the in-flight PR, #13561
The
@cachedList
is so slow 🐌 and we're better off removing it at this point. Would be good see if@cachedList
can be improved or if we can improve things further with a better cache.@cachedList
cache)The text was updated successfully, but these errors were encountered: