Thanks everybody. I wasn't aware of prof:xslt-eval(). The results are interesting. If I understand the output right, the transform is spending 90% of its time evaluating fn:id(). I haven't spent any time configuring indexing in the database, so that looks like it might be a next reasonable stop. Although since the XSLT is evaluating fn:id() against in-memory XML and not database XML, I'm not sure how much that will help.
In any case, this gives me a good place to start, so thanks for pointing out the function. -James -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Michael Blakeley Sent: Wednesday, January 12, 2011 7:17 PM To: General MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] slow xslt performance James, I'll expand on Norm's suggestion by mentioning a less-obvious feature of cq. If you call prof:xslt-eval() in cq, and display the results using the "html" button or the "profile" button, cq should display the results in the same table format it uses for XQuery profiler output. -- Mike On 12 Jan 2011, at 16:28 , Norman Walsh wrote: > James Sulak <[email protected]> writes: >> I realize these are fairly general questions, but (1) are there any >> caveats about Marklogic's XSLT implementation that I should be aware >> of, and (2) how do I approach debugging XSLT performance issues? I've >> invoked xdmp:query-trace(), but I don't get any useful output in the >> log. Any pointers to relevant discussions or documentation would be >> appreciated. > > Have you tried prof:xslt-eval? > > Be seeing you, > norm > > -- > Norman Walsh > Lead Engineer > MarkLogic Corporation > www.marklogic.com > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
