David Lee wrote:

> Your query selects all documents from the entire collection into
> memory then filters it.  Thats a lot of in-memory data required.

> Rob's solution moves that filtering down to the database and
> index level where only the minimum amount of data is brought into
> the xquery context.

  Yes of course.  My query was just a formal way to describe the
result I wanted back.  The whole question was precisely about how
to translate it to use advantage of the index or other internal
optimization ;-)

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to