There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d6c926a0-4f51-4820-af80-bec93efd4373 XWIKI-22573 In Progress

Modifying a group which contains a lot of users can be very slow

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-5b31d2fb-b286-4f58-90d8-1634063e1409 Changes by Thomas Mortagne on 15/Oct/24 13:59
 
Description: Not that According to [~caubin], the save of the document itself is slow not really , but the [automatic invalidation of the security cache|https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-16.8.0/xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-bridge/src/main/java/org/xwiki/security/authorization/internal/DefaultSecurityCacheRulesInvalidatorListener.java] for all the group members (especially, gathering those group members, just after the save) can take a long time.

To reproduce: write a script which add 10 000 XWiki.XWikiGroups with different members in a XWiki.TestGroup document

Adding the first user took around 100 ms for me, but any new add takes about 30s when the document already contains 10 000 members.

We should try to find ways to optimize this.