【发布时间】:2016-06-16 09:16:05
【问题描述】:
我正在尝试获取附加到特定数据库的所有森林的总大小。
使用下面的代码,我得到了所有单个森林的大小,但坚持如何实现解决方案:
for $db-id in xdmp:databases()
let $db-name := xdmp:database-name($db-id)
for $forests in xdmp:forest-status(xdmp:database-forests(xdmp:database($db-name)))
let $space := $forests//forest:device-space
let $f_name := $forests//forest:forest-name
for $stand in $forests//forest:stands
let $f_size := fn:sum($stand/forest:stand/forest:disk-size)
【问题讨论】:
标签: marklogic