Monday, 22 November 2010

MarkLogic: Obtaining a full dump of the status of each forest in all databases

If you're in a situation where you need to get metrics of all your forests hosted on a MarkLogic instance, you can use xdmp:forest-status to get a lot of metrics such as number of stands, last state change etc. You could consider running this as a scheduled task over time if you need to chart how busy the database and forests are at any given time during the week. Here's the XQuery code:

No comments: