Skip to content

Conversation

@nickvergessen
Copy link
Member

Instead we delay the lookup of the display name until it is actually used

Summary

This saves the addressbook setup in all usages of Talk where we just resolve the cloud id to properly get the object with split user ID and server URL. The display name is never used in talk as we cache it into the comments and attendees table.
So this saves 5+ queries in all cases that involve federated users.

Display name still properly loads in:

  • File list (incoming):
    Bildschirmfoto vom 2025-04-09 10-21-13
  • Right sidebar owner chip (incoming):
    Bildschirmfoto vom 2025-04-09 10-21-04
  • Notification (incoming):
    Bildschirmfoto vom 2025-04-09 10-20-37
  • Share list (outgoing):
    Bildschirmfoto vom 2025-04-09 10-20-45

Checklist

@nickvergessen nickvergessen added this to the Nextcloud 32 milestone Apr 9, 2025
@nickvergessen nickvergessen self-assigned this Apr 9, 2025
@nickvergessen nickvergessen requested review from a team as code owners April 9, 2025 08:27
@nickvergessen nickvergessen requested review from ArtificialOwl, nfebe and provokateurin and removed request for a team April 9, 2025 08:27
@nickvergessen nickvergessen force-pushed the perf/noid/dont-load-addressbook-on-resolving-cloudid branch from a88fc13 to 09089e0 Compare April 9, 2025 08:44
Instead we delay the lookup of the display name until it is actually used

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the perf/noid/dont-load-addressbook-on-resolving-cloudid branch from 09089e0 to 6a3c53d Compare April 9, 2025 08:52
@nickvergessen nickvergessen requested review from SystemKeeper and miaulalala and removed request for a team April 9, 2025 09:23
@juliusknorr juliusknorr merged commit 455fb74 into master Apr 9, 2025
214 of 220 checks passed
@juliusknorr juliusknorr deleted the perf/noid/dont-load-addressbook-on-resolving-cloudid branch April 9, 2025 10:33
@nickvergessen
Copy link
Member Author

/backport to stable31

@nickvergessen
Copy link
Member Author

/backport to stable30

@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
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.

5 participants