Skip to content

Conversation

@nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Feb 25, 2022

Getting a user runs 2 queries:

  1. Load the user from oc_users or any other database backend
  2. Load the preferences: Delay loading user preferences until we need them server#31363

This is somewhat dangerous, but all methods only rely on the
userId and the objects are not cached anywhere on the way,
so this should still work and does in tests

Query log from starting a call with 70 users in a room

Bildschirmfoto von 2022-02-25 22-55-44

Getting a user runs 2 queries:
1. Load the user from oc_users
2. Load the preferences

This is somewhat dangerous, but all methods only rely on the
userId and the objects are not cached anywhere on the way,
so this should still work and does in tests

Signed-off-by: Joas Schilling <[email protected]>
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞

@nickvergessen nickvergessen merged commit d8c786d into master Mar 1, 2022
@nickvergessen nickvergessen deleted the techdebt/noid/user-fake-user-object branch March 1, 2022 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants