Re: [MarkLogic Dev General] Speeding up xquery returning aggregates

2016-09-22 Thread Mark Shanks
Thanks. The point is that the execution time isn't increasing at an exponential rate. Note also that each of the facets had about the same number of entries, so it isn't as if the number of tuples increased from, e.g., 50 to 4 million. I find it interesting that marklogic has a separate

Re: [MarkLogic Dev General] Speeding up xquery returning aggregates

2016-09-22 Thread Rob Szkutak
Hi, I thought in your earlier email you implied that many values were fine with a 10,000 document set but slowed down when run against several million? This lead me to believe the slowdown is caused by returning too many tuples. A simple test to confirm if its a problem with the size of the

Re: [MarkLogic Dev General] Code complexity survey

2016-09-22 Thread Indrajeet Verma
I did it as well. Yes it takes 5 to 10 minutes only. Regards, Indy On 22-Sep-2016 7:19 pm, "Geert Josten" wrote: > I’ve submitted my answers, good luck with your survey. Anyone else up for > it? It really takes only 5 to 10 minutes.. > > Cheers > > From:

Re: [MarkLogic Dev General] problem running ML9 early access on Windows7

2016-09-22 Thread Richard Davies
PLEASE REMOVE ME FROM THESE EMAILS. THANKS Richard Davies IT Support Engineer, JWG Group Limited Making sense of FS regulation Registered in England & Wales | Company No: 05862763 | VAT No: 897 3926 53 Registered Office: Matrix House, 12-16 Lionel Road, Canvey Island, Essex SS8 9DE Phone: +44

[MarkLogic Dev General] Case Insensitive Comparison of String Array

2016-09-22 Thread rohan SHARMA
Hi Team, I want to perform case insensitive comparison of 2 array sequence in XQuery . deep-equal( ("1", "sd"), ("1", "SD") ) will result in false. Actually both values sd and SD are same I have gone through various methods such as deep equal or converting both sequence to lower or

Re: [MarkLogic Dev General] Case Insensitive Comparison of String Array

2016-09-22 Thread Geert Josten
Hi Sachin, Deep-equal takes a third parameter, which is the collation to use. You can use collations to ignore case: http://docs.marklogic.com/fn:deep-equal Docs can elaborate on collations, but I typically use Admin UI range index creation which has a collation builder. Build the collation

[MarkLogic Dev General] Format of parameters passed to ReST /eval endpoint

2016-09-22 Thread David Mathei
Hello List, The form parameters one can pass to the ./eval endpoint are described here: https://docs.marklogic.com/guide/rest-dev/extensions#id_13936 . The spec looks like it is JSON, how would one pass a list or an array of values to one parameter here? Thanks David

Re: [MarkLogic Dev General] Format of parameters passed to ReST /eval endpoint

2016-09-22 Thread Geert Josten
Hi David, Just provide an array to the argument, and type your var accordingly.. describe.xqy: xquery version "1.0-ml"; declare variable $arg as item()* external; xdmp:describe($arg) Command-line: curl --anyauth --user admin:admin -X POST -i \ -H "Content-type:

[MarkLogic Dev General] mlcp Transaction Errors - SVC-EXTIME and XDMP-NOTXN

2016-09-22 Thread Stuart Myles
When I'm loading directories of slightly fewer than 100,000 XML files into a large MarkLogic instance, I often get timeout and transaction errors. If I re-run the same directory of files which got those errors, I typically don't get any errors. So, I have a few questions: * Can I get prevent the

Re: [MarkLogic Dev General] Speeding up xquery returning aggregates

2016-09-22 Thread Mark Shanks
As a follow-up, we found that the query was super fast with a small dataset (e.g., 10,000 records). On the other hand, with a large dataset (40 million, and pulling around 1 milllion records), we found that the query would be super fast with 1 or 2 facets, e.g.: let $tuples :=

Re: [MarkLogic Dev General] Format of parameters passed to ReST /eval endpoint

2016-09-22 Thread David Mathei
Thanks very much, Geert! On Thu, Sep 22, 2016 at 11:47 AM, Geert Josten wrote: > Hi David, > > Just provide an array to the argument, and type your var accordingly.. > > describe.xqy: > > > xquery version "1.0-ml"; > > declare variable $arg as item()* external; > >

Re: [MarkLogic Dev General] Speeding up xquery returning aggregates

2016-09-22 Thread Rob Szkutak
Hi, As you add more values to the value-tuples call, you will typically exponentially increase the amount of results you receive. The total number of results will be the total number of all possible unique combinations of all values. More values means more unique combinations of all values.

[MarkLogic Dev General] Full time employment with TCS - Marklogic Developer - Washington DC

2016-09-22 Thread Swapnil Mahadik
Hello, We have below full time opportunities. If you are interested, Please share your updated CV along with Salary expectations. Title : Marklogic Developer Number of positions: 2 Location: Washington DC Type : Full time employment with TCS (www.tcs.com )

Re: [MarkLogic Dev General] Code complexity survey

2016-09-22 Thread Geert Josten
I’ve submitted my answers, good luck with your survey. Anyone else up for it? It really takes only 5 to 10 minutes.. Cheers From: > on behalf of Vard Antinyan