Re: [MarkLogic Dev General] Performance Issue with Schematron Validation

2012-12-02 Thread Gnanaprakash.Bodireddy
d and supply it > to Validation which actually reduced the overhead of compiling the Schematron > every time. > > Thanks and Regards, > > Gnanaprakash Bodireddy > > Date: Wed, 28 Nov 2012 08:48:45 -0800 > From: Michael Blakeley > Subject: Re: [MarkLogic Dev General] Pe

Re: [MarkLogic Dev General] Performance Issue with Schematron Validation

2012-11-28 Thread Michael Blakeley
Modern CPUs are fast, but they are still subject to physics. Each CPU core can only run one thread at a time. The OS will try to switch between threads so that they get equal time, but more threads means less CPU time per thread. Sometimes threads are waiting for disk I/O, so I usually configure

Re: [MarkLogic Dev General] Performance Issue with Schematron Validation

2012-11-28 Thread Gnanaprakash.Bodireddy
Also, if I use cts:element-range-query to search all the chapter elements > that have the value "This is chapter one.", that chapter element is returned > too. Is this expected behavior either? Same question, if I don't want this > chapter element returned, how to do that? > > Thanks, > John >

Re: [MarkLogic Dev General] Performance Issue with Schematron Validation

2012-11-27 Thread Michael Blakeley
Which version of MarkLogic are you using? On what OS? 50 threads could be too many. How many CPU cores does the host have? How much RAM? Standalone validation is a read-only query. But with triggers it changes to a database update context. It shouldn't be surprising that updates are slower tha

[MarkLogic Dev General] Performance Issue with Schematron Validation

2012-11-26 Thread Gnanaprakash.Bodireddy
Hi I am currently validating XML's using Schematron. But I am facing a performance issue with this. Currently I am generating large number of documents on the fly and using triggers (50 Threads) to validate the XML's. Each XML when validated individually is taking around 0.4s but when using t