Be forgiving with performance[?]Do you remember relationnal data bases 20 years ago[?] XPath is not so hard to compile[?] Just a lack of documentation about good practices [?][?]
Dominique Rabeuf[?] France[?] web21th.com[?] <http://web21th.com> <http://web21th.com> 2009/7/21 Tim Finney <[email protected]> > Dear All, > > I would like to be able to find the element associated with an @xml:id > quickly, without knowing the element path or name. Can this be done with > MarkLogic? > > The id() function is meant to do this but it is horribly slow when faced > with masses of documents. For example, > > collection()//*...@xml:id eq 'something'] > > takes thirty seconds and I need it to work in hundredths of seconds > instead. > > (If I put in the element name, the above query runs in about a hundredth > of a second.) > > Best, > > Tim Finney > University of Virginia Press > > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general >
<<813.gif>>
<<1E3.gif>>
<<B56.gif>>
<<81F.gif>>
<<982.gif>>
<<B68.gif>>
<<360.gif>>
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
