Thanks Michael,
for such an invaluable info.I've already seen the sample
get-uris.xqy file you are pointing to.But it only supports collection type
as CorbManager class java source code shows.
I've immediate task to implement generic modules-uri.xqy compatibility in
CORB, by which I mean
I want my module-uri.xqy to be any where of any type , and if I pass
relative path to my module-uri it should run, currently its not happening.
here are the list of argument I'm passing to run CORB
{"java", "-cp", classpath, "com.marklogic.developer.corb.Manager"
, moduleURI, "", get-corb-pipeline-uris.xqy,
threadCount, Dbname,
/assets/, moduleDB, "false"};)
Here I'm passing absolute name of moduleURI and get-uri xqueries and corb
bind assets path reading from Xpath, but i want module uri be generic, so
that I can pick it up from anywhere.
for ex:
{"java", "-cp", classpath, "com.marklogic.developer.corb.Manager"
, /books/moduleURI, "", get-corb-pipeline-uris.xqy,
threadCount, Dbname,
/assets/, moduleDB, "false"};)
and the targeted path that I should get is /assets//books/moduleURI.
Any recommendation and help will be highly appreciated
On Thu, Jul 14, 2011 at 3:46 AM, Michael Blakeley <[email protected]> wrote:
> In general, Corb is an aggressively minimalist tool. It does content
> reprocessing in bulk, and does so with a bare minimum of options.
>
> Corb does support arbitrary queries, with the URIS-MODULE option. Simply
> write the query that returns the uris you want to return. For directories,
> use cts:uris() with a cts:directory-query().
> https://github.com/marklogic/corb/blob/master/src/java/com/marklogic/developer/corb/get-uris.xqyhas
> an example that you could adapt to your needs.
>
> For thread count, I would start with two threads per server CPU core. If
> that isn't fast enough, try doubling it and see if the operation rate goes
> up. If it doesn't, then look at optimizing your XQuery module - or possibly
> tuning the server.
>
> -- Mike
>
> On 13 Jul 2011, at 04:46 , sachin gill wrote:
>
> > Hi,
> > I have just implemented CORB (implemented as jar)as a processing tool
> ! I'm successfully able to run this tool.But I found there are some
> limitations to it:
> > 1) It reads only collection type and not other types(like
> directory , Query) etc. 5) If somebody can explain what all ways I can use
> corb it will be great.
> > 2) Need to know how many optimum threads should I run to optimize
> it running time.
> > 3) Currently I've a restriction that my getURI.xqy file and Module
> URI need to be under same path, because if add extra path to module uri or
> processing file it doesn't work. I want to use different Module URI's
> files.
> > 4)I'll really appreciate If I get an explanation for how broad i
> can use this tool , it will be great because i want it to be used for all
> sort of bulk processing like appending XML elements, svn update. If so
> then how.
> >
> > Thanks
> > Sachin
> >
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://developer.marklogic.com/mailman/listinfo/general
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general