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.

Spaces summary API sometimes has poor performance #10523

@grinapo

Description

@grinapo

Description

Spaces room list (_matrix/client/unstable/org.matrix.msc2946/rooms/<room_id>) takes considerable amount of time to serve (20-60 seconds), which does not seem to be either justified or desirable. (A good example is #osm-space:matrix.org, which contains rooms and spaces as well and takes 20-30 seconds.)

First, room list is quite static most of the time, so caching it (and invalidate cache on change) seems to be desirable, especially if the long query time is justified.

However I do not see any real resource usage there (admittedly without analysing the code): both cpu and psql seems not to be busy.

Steps to reproduce

  • see space room list
  • observe the spinner

Version information

  • Homeserver: grin.hu
  • Version: 1.38.1

Metadata

Metadata

Assignees

Labels

A-SpacesHierarchical organization of roomsS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions