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?
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.