Expandir la barra de logros de la comunidad.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.

RESUELTAS

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

Avatar

Level 2

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.                

1 solución aceptada

Avatar

Respuesta correcta de
Level 2

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.

Ver la solución en mensaje original publicado

1 Respuesta

Avatar

Respuesta correcta de
Level 2

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.