Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Millions of /query/profile requests #12921

Open
matrixbot opened this issue Dec 19, 2023 · 1 comment
Open

Millions of /query/profile requests #12921

matrixbot opened this issue Dec 19, 2023 · 1 comment

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 19, 2023

This issue has been migrated from #12921.


Over the last hour (in which I did rejoin #element:matrix.org, but still), matrix.org has sent my server 1892 GET /_matrix/federation/v1/query/profile?user_id=%40richvdh%3Asw1v.org requests.

They aren't an inherent problem, since they can be served pretty quickly, but this still smacks of huge inefficiency somewhere.

@matrixbot matrixbot changed the title Dummy issue Millions of /query/profile requests Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
@S7evinK
Copy link
Contributor

S7evinK commented Feb 19, 2024

As @richvdh mentioned here, this is due to Synapse requesting displayname and avatar_url in separate requests:

displayname = await self.profile_handler.get_displayname(user)
avatar_url = await self.profile_handler.get_avatar_url(user)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants