This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-789ef821-0520-421f-b86c-749ccd482488 XWIKI-23270 Open

Introduce a cache for document translation locales

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ab8e67d0-1719-43ac-b5eb-0fceb03546d0 Michael Hamann created this issue on 04/Jun/25 17:07
 
Summary: Introduce a cache for document translation locales
Issue Type: cid:jira-generated-image-avatar-789ef821-0520-421f-b86c-749ccd482488 Improvement
Affects Versions: 16.10.0
Assignee: Unassigned
Components: Old Core
Created: 04/Jun/25 17:07
Labels: performance
Priority: cid:jira-generated-image-static-major-aa0607e4-5613-4d4b-9a5d-d11ea82d2699 Major
Reporter: Michael Hamann
Description:

Getting the translation locales of a document currently always triggers a database query. As document locales for the same document are queried many times in the Solr indexer (for every object, object property, and attachment of a document) and also shown in the UI, it would be good to introduce a cache for them. The cache should be cleared when the list of enabled locales is changed and invalidated for a document when a document with that reference (regardless of the locale) is created or deleted.

This cache should reduce the time needed to get a document for Solr indexing by about 10%.