"The love of money is the root of all evil!" 1 Tim 6:10 -- Paul of Tarsus
Best regards! Tim -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Florent Georges Sent: Friday, October 30, 2009 8:08 AM To: General Mark Logic Developer Discussion; Geert Josten Subject: Re: [MarkLogic Dev General] values of attributes withsamenameinMarklogic!!? 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/ _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
