On 16.12.2019 10:26, Tanvi Shah wrote:
Hi,
We are implementing versioning of jcr:content with repository having more than 
100,000 of nodes. But after adding the mixin for mix:versionable the session is 
taking too much time for saving the data.

What is the content structure? Are there any big folders?

We are using Postgres as the database and are using 1.10.2 version of Jackrabbit 
oak. > Versioning takes more than 4 minutes of time to save the session on
the larger repository.

For a single node? Did you inspect the system log? Can you take thread
dumps to see what the system is doing?

Till now we didn't use any versioning for the nodes and this is working fine in 
the lower environment with lesser number of nodes in repository.

The code is :
final Node content = file.addNode(Property.JCR_CONTENT, NodeType.NT_RESOURCE);
content.addMixin(NodeType.MIX_VERSIONABLE);
content.setProperty(Property.JCR_DATA, binary);
session.save();
log.info("Saving session and chekin the node");
versionManager.checkin(content.getPath());

So please help me with solving this problem where session takes minimum time 
for saving as this has become a blocker for us. Thank you in advance.
...

Best regards, Julian

Reply via email to