There is 1 comment.
 
 
XWiki Commons / cid:jira-generated-image-avatar-6429d12c-c41c-42e0-9e2a-6c1c1627dfc8 XCOMMONS-3342 Open

DefaultExtensionJobHistory does not scale

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-c162f665-8e1c-482b-936c-2723d5c961ff Thomas Mortagne on 22/May/25 14:59
 
Ideally, the storage needs to be completely changed to support the need covered by ExtensionJobHistory# getRecords() without having to load them all in memory.

But an easier middle ground would be to change a bit the logic to load existing job history files only the first time getRecords is called (so when actually accessing the extension history UI), and keep in memory only what is asked (which by default is only the last 10). So make what is in memory more of a cache than the full storage.