The script I sent out last week (put_sync.xsh) had some bugs in it, as
well as a bug in the marklogic xmlsh extension "put" command.

I've updated the extension (www.xmlsh.org) and attached is the updated
fixed put_sync.xsh script.

I've had a chance to test this in production against a moderate size of
xquery modules (about 100 files).

After the first invocation (where it will update the md5 properties on
all your target files), then only changed files will be sent to the ML
server.

Significant speed enhancement from sending the entire directory.

 

Note that the first time this is run, its fairly slow and inefficient.
You could accomplish the same thing faster using just the put command
and the -md5 switch.

 

Right now this script outputs the entire changelist to stdout (as an xml
file) so you can see what its doing.

That is easy to turn off, just comment out the xecho statement under
#### DEBUG 

 

 

 

 

 

----------------------------------------

David A. Lee

Senior Principal Software Engineer

Epocrates, Inc.

[email protected] <mailto:[email protected]> 

812-482-5224

 

Attachment: put_sync.xsh
Description: put_sync.xsh

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to