:22 -0700
From: Danny Sokolsky danny.sokol...@marklogic.com
Subject: Re: [MarkLogic Dev General] Collection operations performance
To: MarkLogic Developer Discussion general@developer.marklogic.com
Message-ID:
c9924d15b04672479b089f7d55ffc13222639e5...@exchg-be.marklogic.com
Content-Type: text
I have been trying to create/add to a collection of documents with a query
like this:
define function addTitlesToCollection($collectionUri, $isbnList) {
let $isbn-query-string :=
fn:concat('cts:search(fn:collection(my-main-collection),cts:or-query((',
getValueQueryStringForISBN($isbnList),
2012 16:14
Aan: general@developer.marklogic.com
Onderwerp: [MarkLogic Dev General] Collection operations performance
I have been trying to create/add to a collection of documents with a
query
like this:
define function addTitlesToCollection($collectionUri, $isbnList) {
let $isbn-query
] On Behalf Of Geert Josten
Sent: Thursday, May 31, 2012 7:28 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Collection operations performance
Hi John,
Not sure where you read that creating a collection would be resource
'intensive'. Working with collections should actually
I think the first step is to rewrite that isbn query without using xdmp:value.
From what I can see, there is no reason to use xdmp:value there. You should be
able to compose the whole cts:or-query using cts:query constructors.
Once you have done that, the performance problem may become clearer.