There are 5 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-7bc27dae-00f9-4883-b2b8-d80f1119d2f9 XWIKI-22913 Open

Analyzing mentions on a document with a huge number of objects takes very long

 
View issue   ยท   Add comment
 

5 updates

 
cid:jira-generated-image-avatar-ae8727ab-96dd-476a-9752-6af8316fc6ee Changes by Michael Hamann on 21/Feb/25 17:40
 
Fix Version: 16.4.7
Fix Version: 16.10.5
Fix Version: 17.2.0-rc-1
Description: *Steps to reproduce:*

# Create a group with 100k users
# Add another user to the group

*Expected result:*

The mentions analysis is fast as there is nothing to analyze.

*Actual result:*

The mentions analysis task takes very long (several minutes at least).

This is caused by the mentions analyzer doing a linear search for the existing objects in https://github.com/xwiki/xwiki-platform/blob/99353cb06bf62de1819d1bc5d757e881a3f35f38/xwiki-platform-core/xwiki-platform-mentions/xwiki-platform-mentions-default/src/main/java/org/xwiki/mentions/internal/analyzer/UpdatedDocumentMentionsAnalyzer.java#L204-L209


This exact code was introduced in XWIKI-17895 but I don't know if similar code existed before.
Labels: performance