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
--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/
t: +44 (0) 8700 671 490
m: +44 (0) 7802 24 24 86
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm