Following a discusison on chat with Vincent Massol and Thomas Mortagne, a workaround (lts available) already exists, described on https://jira.xwiki.org/browse/XWIKI-22613 , which is to disable storing diffs and make history store full versions all the time. it increases the space used in the db, but it will improve the speed, potentially enough to provide an acceptable solution for this issue.
Anca Luca on 28/Nov/24 14:54
Following a discusison on chat with [~vmassol] and [~tmortagne], a workaround already exists (lts available in LTS) already exists, described on https://jira.xwiki.org/browse/XWIKI-22613 , which is to disable storing diffs and make history store full versions all the time. it increases the space used in the db, but it will improve the speed, potentially enough to provide an acceptable solution for this issue.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.