|
Hi Andreas,
cts:element-values((xs:QName("a"), xs:QName("b"))) will be good in terms of performance rather than getting result separate and then manually merging.
You can write a dynamic query based on your element and element+attribute and then use to retrieve your result.
Regards,
Asit Nautiyal
From: [email protected] [[email protected]] on behalf of Andreas Hubmer [[email protected]]
Sent: Tuesday, May 12, 2015 6:07 PM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Performance of cts:element-values Hi,
I am retrieving the values of several elements and would like to know whether there is a performance difference between
* calling cts:element-values((xs:QName("a"), xs:QName("b")))
* and calling cts:element-values(xs:QName("a")) and cts:element-values(xs:QName("b")) separately and manually merging the values.
Why do I want to do it manually? Actually I will not only use cts:element-values but also cts:element-attribute-values. I will have a dynamic list of element names and element+attribute names and want to retrieve all their values and frequencies.
Regards,
Andreas
Andreas Hubmer
IT Consultant
Email:
[email protected]
OUR TEAM IS YOUR SUCCESS
UID-Nr. ATU68135644
HG St.Pölten - FN 399978 d
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. ---------------------------------------------------------------------------------------------------------------------------------------------------- |
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
