我目前使用XQuery查询(通过API推出)从Marklogic提取8.0.6/marklogic 8:计划的Xquery提取
查询我的文件extract_data.xqy:
xdmp:save("toto.csv",let $nl := " "
return
document {
for $data in collection("http://book/polar")
return ($data)
})
API调用:
$curl --anyauth --user ${MARKLOGIC_USERNAME}:${MARKLOGIC_PASSWORD} -X POST -i -d @extract_data.xqy \
-H "Content-type: application/x-www-form-urlencoded" \
-H "Accept: multipart/mixed; boundary=BOUNDARY" \
$node:$port/v1/eval?database=$db_name
它工作正常,但我想直接在marklogic安排此提取物,并将它在后台运行,以避免超时如果再任务需要太多时间才能执行。
是 - 有这样的功能吗?
Regards, Romain。
CORB非常适合生成CSV输出,特别是当URI的数量可能非常大时。它将列表拆分并将每个URI作为单独的模块执行进行处理,因此您不必担心超时.https://github.com/marklogic-community/corb2#sample-5---report-generates-一个单文件与 - 数据从处理 - 每个-URI –