I am retrieving data from a node in JCR, which of these are more performatic? | Community
Skip to main content
Level 2
October 16, 2015
Solved

I am retrieving data from a node in JCR, which of these are more performatic?

  • October 16, 2015
  • 1 reply
  • 633 views

1. To create a java object that has a property holdign the node wehre the properties are stored and then the getter will get the value from the node strucutre?

2. or create the object while retrieving all the data from node, and then when getter is triggered it get values directly from java object

Is there any performance difference?

THnaks.                

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by prajesh

I would suggest go with Option 2. it holds the data in your object and avoids traversing the repository every time you call your get method.

1 reply

prajesh
prajeshAccepted solution
Level 2
October 16, 2015

I would suggest go with Option 2. it holds the data in your object and avoids traversing the repository every time you call your get method.