Given MarkLogic databases mirrored on two different (standard edition)
hosts, I'm trying to figure out the best way to determine whether there
are differences between  given files on the two systems. Ideally I'd
like to do a deep-equal compare on the document nodes.

I know that the XQsync tool can be used to copy all or part of a
database from one platform to another, but I don't want overwriting.

I can do a hack-ish comparison using the cqsh tool by creating a Unix
shell script along these lines:

    echo "xdmp:hash32(xdmp:quote(doc(\"$1\")))" | cqsh -H host1
    echo "xdmp:hash32(xdmp:quote(doc(\"$1\")))" | cqsh -H host2

which does indeed flag non-identical files. But I'm thinking there ought
to be a better way.

-- 
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 801079, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: [email protected]   Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to