How to measure query Xquery performance in Marklogic?

 First, we can analyze our query by profiling the meter that is given on the Console page. It completely shows line-by-line execution time.  Here you can able to see line-by-line execution time. Based on this execution time you can re-design or tune your query. 




Read the complete article here, to know a better understanding of the displayed button on the Profile button on the QConsole page.

 

Second, we use the xdmp:query-meters and xdmp:query-trace functions to understand and tune the performance of queries. 

Comments

Popular posts from this blog

What is universal index and range index?

What is the basic difference between xdmp:spawn and xdmp:invoke a function in Marklogic.

MarkLogic server architecture.