This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
get_bundled_aggregations
takes a few seconds even when there is no relations
#13624
Labels
A-Messages-Endpoint
/messages client API endpoint (`RoomMessageListRestServlet`) (which also triggers /backfill)
A-Performance
Performance, both client-facing and admin-facing
A-Threads
Threaded messages
O-Occasional
Affects or can be seen by some users regularly or most users rarely
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 about speeding up
/messages
. Also see "2. Loading tons of events" in #13356get_bundled_aggregations
takes a few seconds even when there is no relations. This happens at the end of every/messages
request.For 500 messages that have 0 relations, reactions, threads, redactions, it takes 1 second to process. This is reproduced by running the many users, many messages Complement test I have in matrix-org/complement#443
Bunch of
get_annotations_for_event
andget_relations_for_event
calls for each message:Potential solutions
Batch up the lookups. It looks like most are just the magnitude of the round-trip to and from the database for each of the messages.
The text was updated successfully, but these errors were encountered: