-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
DM creation is slow #13963
Description
DM creation in Synapse is know to be slow, taking up to approximately 1-3s in some traces. Ideally this should not take more than 300ms, although it is unclear if it is possible to get there. There has been some work done on this issue, namely #13800.
Known next steps:
Investigate whether the membership event in the initial create room events can be added to the batch for bulk persisting:
#13959
Batch up storing state groups for initial room creation events:
#13961
Investigate which other events can be batched for bulk persisting and do so:
#13962
It is unclear if taking these steps will totally resolve the issue. If they do not, it might be necessary to add more logging to determine more precisely where the time is going (especially with regard to database calls), or look at trying to speed up event persistence in general.