AnsweredAssumed Answered

getTargetAssocs, strange behavior

Question asked by nicolasb on Mar 21, 2008
Hello,

We currently are running 2 differents version of Alfresco : 2.0.1 and 2.10.
We have 3 objects A, B and C. 2 associations A –> B and A –> C, respectively 30000 instances and 1 instance.

To reach the only nodeRef from A to C, we use :

List<AssociationRef> listAssocRef = nodeService.getTargetAssocs(nodeRef, XXXXXX.XXXXXXx_ASSOC_A_TO_C);

getTargetAssocs returns a huge List with 30001 references : 30000 null and 1 nodeRef. Of course, it takes a lot of time.

I have been Googling. I dont find a lot. Am I doing it wrong ?

getSourceAssocs seems to suffer the same problem.

Regards


Nicolas

Outcomes