flexrep:push-local-forest-target( $domain-id as xs:unsignedLong, $target-id as xs:unsignedLong, $forest-id as xs:unsignedLong, $max-spawn as xs:unsignedLong ) as empty-sequence()
Push a batch of documents from a single forest to a single target, and respawn a new task to do this repeatedly until either nothing remains to replicate or the spawn limit is reached. Typically deployments do not need to call this directly, and instead rely on the push-local-forests.xqy scheduled task.
Parameters | |
---|---|
domain-id | The domain ID. |
target-id | The target ID. |
forest-id | The forest ID. |
max-spawn | The maximum number of times to respawn. |
xquery version "1.0-ml"; import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" at "/MarkLogic/flexrep.xqy"; flexrep:push-local-forest-target($domain-id, $target-id, $forest-id, 10)
http://marklogic.com/xdmp/privileges/flexrep-user