Skip to content

Performance of Sync API is degraded in v1.135.0rc1 #18738

@mntu

Description

@mntu

The code below in synapse/events/utils.py significantly increases the response time of the Sync API

if config.requester is not None and await self._auth.is_server_admin(
config.requester
):
    config = make_config_for_admin(config)

Why not check if the requester is a Server Admin before calling serialize_event
I tested on my data and it increased the response time of the Sync API by 2 minutes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions