Hi, I have a document that is contains lookup values that are frequently accessed.
When a new document is ingested, I loop through its keys and pull the matching values from the lookup document. Is there a difference in performance between this code: let $lookups := fn:doc($lookup-uri)//values return for $key in $keys return $value := $lookups[key = $key] And this code? for $key in $keys return $value := fn:doc($lookup-uri)//values[key = $key] Am I correct in thinking that the former is reading in all the values (some of which may not be used), while the latter just pulls back the values that are needed? Bob
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
