cancel
Showing results for 
Search instead for 
Did you mean: 

Logical query about alfresco getting children of a node

AidenZ
Champ in-the-making
Champ in-the-making

Hi everybody,

I found that when alfresco is executing the logic of this api (/nodes/{nodeId}/children) is that it will query all the data first and then save the data in memory or on disk before paging. (Please correct me if I am wrong).


This logic takes a lot of memory, is there any other way to avoid this?

1 REPLY 1

kintu_barot
Star Collaborator
Star Collaborator

Hi AidenZ,

The ReST API which you are using has many optional parameters to narrow down your search, if you are looking for only documents or folder of specific type.  If that is not the case and you want all the children of a folder then you can use 'fields' parameter to restrict the fields of nodes in the response, only to save on bandwidth. 

If the volume of a folder is high then you have to bear with it as Alfresco recommends to have as many as 5k nodes within a folder.

Regards,
Kintu