Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

DM creation is slow #13963

@H-Shay

Description

@H-Shay

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.

Metadata

Metadata

Assignees

Labels

A-DMsIssues around DM roomsO-FrequentAffects or can be seen by most users regularly or impacts most users' first experienceS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Z-Epic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions