I can see that cts.values
and cts.elementValues
has similar use.
In that case, what is the difference between both of them in terms of performance? Which is more efficient?
I can see that cts.values
and cts.elementValues
has similar use.
In that case, what is the difference between both of them in terms of performance? Which is more efficient?
Copyright © 2021 Jogjafile Inc.
They should perform the same. Both of those functions provide a way to query lexicons (range indexes).
With
cts.values()
, the first parameter is acts.reference[]
. So, that means that you can provide any of thects.reference
types:cts.elementReference
,cts.elementAttributeReference
,cts.fieldReference
,cts.jsonPropertyReference
,cts.pathReference
, as well ascts.collectionReference
andcts.uriReference
.With the
cts.elementValues()
query, the first parameter is anxs.QName[]
for the element(s), rather than acts.reference[]
.These other lexicon values functions have a similar difference in the parameters, but are also effectively a different way of invoking
cts.values()
: