element-hq / element-hq/element-web
Lots of `Rotating session for room` lines on startup
Open
A-Performance
O-Frequent
S-Tolerable
T-Defect
Team: Crypto
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
When resuming a session, we log thousands of lines like:
```
Rotating session for room !:matrix.org due to member leaving the room
```
This is an artifact of matrix-org/matrix-js-sdk#5231, together with the js-sdk's "sync accumulator". When we resume a session, the js-sdk replays all state events in all rooms, which triggers the above logging.
It's relatively harmless, though certainly not great for performance. (The logging is less of a concern than the indexeddb operation we do for each line, since the absence of an active session is uncached)
Contributor guide
Assessment
This issue has not been assessed yet.