This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-445d4ba6-955e-4cd6-b5fb-b2357226666a XWIKI-22913 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-653eae69-d850-4667-b9b1-131d8f49061b Michael Hamann created this issue on 21/Feb/25 15:58
 
Summary: Analyzing mentions on a document with a huge number of objects takes very long
Issue Type: cid:jira-generated-image-avatar-445d4ba6-955e-4cd6-b5fb-b2357226666a Bug
Affects Versions: 12.10
Assignee: Unassigned
Components: Mentions
Created: 21/Feb/25 15:58
Priority: cid:jira-generated-image-static-critical-e2a0c1f0-79a5-4a38-8faf-921210ce8d49 Critical
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Create a group with 100k users
  2. 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

 
 

1 update

 
cid:jira-generated-image-avatar-653eae69-d850-4667-b9b1-131d8f49061b Changes by Michael Hamann on 21/Feb/25 15:58
 
Assignee: Michael Hamann