From fb0017450c1994a8e0fc0fea8a0112927308ff26 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Fri, 7 Apr 2023 14:09:25 +0200 Subject: [PATCH] Document group and user display name caches Signed-off-by: Anna Larch --- developer_manual/digging_deeper/performance.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/developer_manual/digging_deeper/performance.rst b/developer_manual/digging_deeper/performance.rst index fed3e28e2..5fe13656f 100644 --- a/developer_manual/digging_deeper/performance.rst +++ b/developer_manual/digging_deeper/performance.rst @@ -60,6 +60,11 @@ If you increase the long_query_time to 100 and add log-queries-not-using-indexes slow_query_log_file = /var/log/mysql/mysql-slow.log long_query_time=100 +Cached data +^^^^^^^^^^^ + +Starting from Nextcloud 26, user and group display names now are cached. Use the ``IUserManager::getDisplayName`` or ``IGroupManager::getDisplayName`` functions to avoid roundtrips to the database. + Measuring performance ^^^^^^^^^^^^^^^^^^^^^