Skip to content

Use getOriginalDocument instead of retrieving the older versions of documents from the database #176

Description

@trrenty

This issue concerns the following line of code:

XWikiDocument previousVersionDoc = revisionProvider.getRevision(document, previousVersion);

When looking for task macros that were deleted from the page, we retrieve the previous document version from the database which is not very efficient.

document.getOriginalDocument() method offers the document in the state before the changes were made and retrieves it from memory.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions