]> source.dussan.org Git - nextcloud-server.git/commit
Optimize retrieving display name when searching for users in a group
authorCarl Schwan <carl@carlschwan.eu>
Mon, 13 Jun 2022 16:48:49 +0000 (18:48 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 27 Apr 2023 09:57:45 +0000 (11:57 +0200)
commit35dc2235001bf61f07c78b50e74ca029bb9fc05d
treeb68b7d6e311caf9f7c3cc597e42c085fce792851
parent5e96228eb1f7999a327dacab22055ec2aa8e28a3
Optimize retrieving display name when searching for users in a group

This is recurrent scenario that we are searching for users and then for
each users we fetch the displayName. This is inefficient, so instead try
to do one query to fetch everything (e.g. Database backend) or use the
already existing DisplayNameCache helper.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
13 files changed:
apps/user_ldap/lib/Group_LDAP.php
apps/user_ldap/lib/Group_Proxy.php
build/psalm-baseline-ocp.xml
lib/private/Group/Database.php
lib/private/Group/Group.php
lib/private/User/LazyUser.php
lib/private/User/Manager.php
lib/public/Group/Backend/ABackend.php
lib/public/GroupInterface.php
lib/public/IGroup.php
tests/lib/Group/GroupTest.php
tests/lib/Group/ManagerTest.php
tests/lib/Util/Group/Dummy.php