[MarkLogic Dev General] values of attributes with
samenameinMarklogic!!?
Florent Georges
lists at fgeorges.org
Fri Oct 30 04:08:21 PST 2009
Geert Josten wrote:
> > $sampleArticle/.../related-article/@xlink:href/data(.)
> This approach is calling the data function for each
> individual value, instead of once for all. This could impact
> performance, though you never know for sure unless you test
> this. And on small sets it might hardly matter at all.. ;-)
Especially, I trust ML server to optimize such expressions ;-) I do prefer to make the intent clear, than trying to always think about optimization (if you write code properly and clearly, this is rarely necessary.)
We should forget about small efficiencies, say about
97% of the time: premature optimization is the root of
all evil.
-- Donald Knuth
Regards,
--
Florent Georges
http://www.fgeorges.org/
More information about the General
mailing list