Hi,
As I take a look at repostat command - it iterates over the "root" and counts children document by document - if the document is a folder it recursively walks on its children.
Regards,
Stefan


Sean Radford wrote:
The Nuxeo Shell has the 'repostats' command - worth taking a look at that?

Sean

Stefan Dimov wrote:
Hi,
Thanks for response. The question was about to count functionality similar to SQL COUNT operator. The purpose is to count documents in the repository without need to load them. If the count is hundreds of thousands I'm not sure what will be the performance of the system - documents are getting loaded (even lazy loaded) and after that count from the list.
Anyway thanks for suggestion.
Regards,
Stefan
You can do this...

DocumentModelList childList = coreSession.getChildren(parentDocument.getRef());
long noOfChildDocs = childList.totalSize();

Thanks,
Hari
--
Posted by "hariprashath" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2305#8047>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm




_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm







_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to