Thanks for your reply. Can you give some insight on how cts:element-values
works internally when called with multiple QNames? How is it faster than
manually merging the values afterwards?

2015-05-12 14:50 GMT+02:00 Asitmohan Nautiyal <[email protected]>:

>  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]
>  Web: http://www.ebcont.com
>
>  OUR TEAM IS YOUR SUCCESS
>
>  UID-Nr. ATU68135644
> HG St.Pölten - FN 399978 d
>
>
>
> ::DISCLAIMER::
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> E-mail transmission is not guaranteed to be secure or error-free as
> information could be intercepted, corrupted,
> lost, destroyed, arrive late or incomplete, or may contain viruses in
> transmission. The e mail and its contents
> (with or without referred errors) shall therefore not attach any liability
> on the originator or HCL or its affiliates.
> Views or opinions, if any, presented in this email are solely those of the
> author and may not necessarily reflect the
> views or opinions of HCL or its affiliates. Any form of reproduction,
> dissemination, copying, disclosure, modification,
> distribution and / or publication of this message without the prior
> written consent of authorized representative of
> HCL is strictly prohibited. If you have received this email in error
> please delete it and notify the sender immediately.
> Before opening any email and/or attachments, please check them for viruses
> and other defects.
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Andreas Hubmer
IT Consultant

EBCONT enterprise technologies GmbH
Millennium Tower
Handelskai 94-96
A-1200 Vienna

Mobile: +43 664 60651861
Fax: +43 2772 512 69-9
Email: [email protected]
Web: http://www.ebcont.com

OUR TEAM IS YOUR SUCCESS

UID-Nr. ATU68135644
HG St.Pölten - FN 399978 d
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to