You can either iterate over the forests using xdmp:database-forests() and
xdmp:forest-counts(), or get the information already calculated for you via
http call to http:localhost:8002/manage/v2/database/{$db-name}?view=counts (v1
instead of v2 if you're on MarkLogic 5 or 6). The REST interface also takes
replicas into account, as does the admin interface.
The counts are separate from status as they are more expensive as the cluster
grows.
On Jan 20, 2014, at 4:45 AM, "Geert J."
<[email protected]<mailto:[email protected]>> wrote:
Hi Manoj,
You could do xdmp:estimate(collection()) if you are only interested in number
of documents. If you want to know more, then I’m afraid you will need to
accumulate that yourself, by iterating through
xdmp:database-forests<http://docs.marklogic.com/xdmp:database-forests>()..
Kind regards,
Geert
Van:
[email protected]<mailto:[email protected]>
[mailto:[email protected]<mailto:[email protected]>]
Namens manoj viswanadha
Verzonden: maandag 20 januari 2014 13:31
Aan: MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] Database status
Hi Geert,
Thanks for your quick reply. I have tried xdmp:forest-status but i could not
find the count of documents stored in a particular database.
Is there any other function which gives that info.
Thanks,
Manoj.
On Mon, Jan 20, 2014 at 5:23 PM, Geert J.
<[email protected]<mailto:[email protected]>> wrote:
Hi Manoj,
I think you are looking for
xdmp:forest-status(),http://docs.marklogic.com/xdmp:forest-status
Kind regards,
Geert
Van:
[email protected]<mailto:[email protected]>
[mailto:[email protected]<mailto:[email protected]>]
Namens manoj viswanadha
Verzonden: maandag 20 januari 2014 12:10
Aan: MarkLogic Developer Discussion
Onderwerp: [MarkLogic Dev General] Database status
Hi Guys,
Can anyone help me in getting the database status in marklogic.
I can view the status from admin screen where i can see document size, no of
fragments and other properties.
Is there any function in ML where i can get all the properties?
Thanks,
Manoj Viswanadha.
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general