From: Wolfgang M. <wol...@gm...> - 2006-11-29 08:20:59
|
> Is it possible for exist to tell me > on which part of the query it spends most of the time, or maybe for > eXist to tell me how it runs the query (like Oracle's explain plan), > or am I looking in the wrong direction? I recently added a pragma expression to measure the elapsed time for selected parts of a larger query: (# exist:timer #) { //some/path/expression } This will print out timings for the given expression to the trace log. It would be much nicer to have a profiler to automatically collect timings for all relevant parts of a given query, but this feature is still in the making. I'm also working on a better optimizer, which will analyze the query at compile time and could thus generate an explain plan. Right now, eXist chooses its optimizations at evaluation time. Well, right now I often help myself with an ordinary Java profiler. Wolfgang |