This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-1ff3ec83-8b01-4994-857c-7df1054d2559 XWIKI-22917 Open

Solr indexing takes very long when there are many objects with different values

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e37e5c1f-2292-47a6-a558-98a5a4974edf Michael Hamann created this issue on 21/Feb/25 16:33
 
Summary: Solr indexing takes very long when there are many objects with different values
Issue Type: cid:jira-generated-image-avatar-1ff3ec83-8b01-4994-857c-7df1054d2559 Bug
Affects Versions: 7.1-milestone-1
Assignee: Unassigned
Attachments: image-2025-02-21-16-32-32-662.png
Components: Search - Solr
Created: 21/Feb/25 16:33
Priority: cid:jira-generated-image-static-critical-72bf1ba5-d9a9-41e9-9c98-99ede0a1035d Critical
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Add 100k different users to a group.
  2. Save the group
  3. Profile XWiki (or just wait until Solr indexing finishes)

Expected result:

Solr indexing finishes in a minute or so.

Actual result:

Solr indexing takes a long time and 100% CPU on a core. The profile looks like this:

_thumb_43358.png

This profile highlights a loop whose running time is quadratic in the number of values at https://github.com/xwiki/xwiki-platform/blob/3e5272f2ef0dff06a8f4db10afd1949b2f9e6eea/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-api/src/main/java/org/xwiki/search/solr/internal/metadata/AbstractSolrMetadataExtractor.java#L513-L516

 
 

1 update

 
cid:jira-generated-image-avatar-e37e5c1f-2292-47a6-a558-98a5a4974edf Changes by Michael Hamann on 21/Feb/25 16:34
 
Assignee: Michael Hamann