This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-210f3d58-bf20-4bbf-8a9c-93e2ae8fdc90 XWIKI-23075 Open

Documents containing XClass definitions aren't cached anymore causing high database load

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-bc936997-f691-48a0-81cd-493272d93455 Michael Hamann created this issue on 07/Apr/25 15:25
 
Summary: Documents containing XClass definitions aren't cached anymore causing high database load
Issue Type: cid:jira-generated-image-avatar-210f3d58-bf20-4bbf-8a9c-93e2ae8fdc90 Bug
Affects Versions: 17.2.0-rc-1
Assignee: Unassigned
Components: Old Core
Created: 07/Apr/25 15:25
Labels: regression
Priority: cid:jira-generated-image-static-blocker-f1f6818d-6dcd-43c7-9a90-916ba9022524 Blocker
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Repeatedly access some pages of the wiki
  2. Monitor database queries

Expected result:

There are no documents loaded from the database as on repeated access, they are cached.

Actual result:

Lots of documents containing XClass definitions are repeatedly loaded from the database, like Document.SheetBinding

This is because due to a bug in the implementation of XWIKI-22782, cloning the XClass marks the document as dirty and since XWIKI-22892, this means that the cache isn't used anymore.

 
 

2 updates

 
cid:jira-generated-image-avatar-bc936997-f691-48a0-81cd-493272d93455 Changes by Michael Hamann on 07/Apr/25 15:25
 
Fix Version: 17.2.1
Description: *Steps to reproduce:*

# Repeatedly access some pages of the wiki
# Monitor database queries

*Expected result:*

There are no documents loaded from the database as on repeated access, they are cached.

*Actual result:*

Lots of documents containing XClass definitions are repeatedly loaded from the database, like {{
Document XWiki . SheetBinding DocumentSheetBinding }}

This is because due to a bug in the implementation of XWIKI-22782, cloning the XClass marks the document as dirty and since XWIKI-22892, this means that the cache isn't used anymore.