Re: [MarkLogic Dev General] Range Index in Where Clause

2012-10-22 Thread David Sargeant
Thanks for the help! David On Oct 22, 2012, at 1:27 PM, Gajanan Chinchwadkar wrote: > If an xpath expression has a predicate with value, then element range index > will be used, if available. > For example, in the following two cases a range index on xs:QName("title") > will be used: > a.

Re: [MarkLogic Dev General] Range Index in Where Clause

2012-10-22 Thread Gajanan Chinchwadkar
If an xpath expression has a predicate with value, then element range index will be used, if available. For example, in the following two cases a range index on xs:QName("title") will be used: a. /bookstore/book[title="XQuery Programming"] b. /bookstore/book[title="XQuery Programming"]/author

Re: [MarkLogic Dev General] Range Index in Where Clause

2012-10-22 Thread Michael Blakeley
I would rephrase this as "does the evaluator ever use indexes for where clauses?" If indexes are used at all, I would expect ranges to work too. And with 6.0-1.1 the answer seems to be "yes" - but I would still recommend doing as much as possible in XPath predicates. Here's a contrived test. In

Re: [MarkLogic Dev General] XQuery 3.0

2012-10-22 Thread Ryan Dew
Not sure about 1,2,, and 4. But dynamic function calls are already in ML 6. http://maxdewpoint.blogspot.com/2012/10/higher-order-functions-in-marklogic-6.html On Mon, Oct 22, 2012 at 7:28 AM, David Sargeant wrote: > I was just curious what the roadmap is for the following XQuery 3.0 > feature

Re: [MarkLogic Dev General] Pointing to a database: using its ID?

2012-10-22 Thread Mike Sokolov
On 10/22/2012 10:38 AM, Florent Georges wrote: >But my concern is that the name is not stable. You can change > the name of one database, and in that case I want the config to > still point to the same database. Of course, I always display > the name instead of the ID in the user interface ;-

[MarkLogic Dev General] Range Index in Where Clause

2012-10-22 Thread David Sargeant
I'm wondering if ML uses a range index in the where portion of a FLOWR expression where applicable. I could only find examples of 'order by'. Thanks. David___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailma

Re: [MarkLogic Dev General] Pointing to a database: using its ID?

2012-10-22 Thread Florent Georges
Mike Sokolov wrote:   Hi, > So if you have, say, a development setup and a production > setup, they can share the same database names, but not the same > database ids.  You can always get the id for a name using > xdmp:database()   But my concern is that the name is not stable.  You can change t

Re: [MarkLogic Dev General] Pointing to a database: using its ID?

2012-10-22 Thread Mike Sokolov
FWIW, we generally use the database names rather than their ids in our configuration files. It's just easier to see what's going on if you have a lot of configuration data to sort through, and as Michael Blakeley pointed out, the ids won't be portable. So if you have, say, a development setup

[MarkLogic Dev General] XQuery 3.0

2012-10-22 Thread David Sargeant
I was just curious what the roadmap is for the following XQuery 3.0 features: 1. group by clause in FLWOR Expressions 2. allowing empty in for clause 3. Dynamic function calls 4. count clause in FLWOR Expressions Thanks, David___ General mailing

[MarkLogic Dev General] Merging Schema and Schematron in MarkLogic

2012-10-22 Thread Gnanaprakash.Bodireddy
Hi Is there any way in MarkLogic to Validate a schema (which have Schematron internally) Till now, I have used Schema to validate the XML data and it went on well with commands like (validate strict <> and validate full >) After having a requirement of performing conditional validation, I went

Re: [MarkLogic Dev General] Map Operator and Concurrency

2012-10-22 Thread John Snelson
On 21/10/12 00:36, Ryan Dew wrote: > Sorry, I realized my test was flawed and the map operator does seem to > interfere with concurrency. Does anyone know if there is any benefit of > using the map operator over a flwor other than simpler syntax? Generally the simple map operator is evaluated lazi

Re: [MarkLogic Dev General] Pointing to a database: using its ID?

2012-10-22 Thread Geert Josten
Hi Florent, Might be worth to have a look at the configuration manager that comes with MarkLogic since 5.0.. Kind regards, Geert > -Oorspronkelijk bericht- > Van: general-boun...@developer.marklogic.com [mailto:general- > boun...@developer.marklogic.com] Namens Florent Georges > Verzonde