Calling xdmp:query-meters can be expensive. For simple execution time, 
use xdmp:elapsed-time().

http://developer.marklogic.com/pubs/4.1/apidocs/Ext-7.html#xdmp:elapsed-time

-- Mike

On 2010-09-20 07:12, Ron Hitchens wrote:
>
>     Take a look at the profiling API:
>
> http://developer.marklogic.com/pubs/4.1/apidocs/ProfileBuiltins.html
>
>     xdmp:query-meters can also be helpful:
>
> http://developer.marklogic.com/pubs/4.1/apidocs/Ext-7.html#xdmp:query-meters
>
> On Sep 20, 2010, at 2:52 PM, Jonna Marry wrote:
>
>> Hi all,
>>
>> I just wanted to know Is there any way to calculate the query execution time?
>>
>> Regards,
>> Jonna
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general
>
> ---
> Ron Hitchens {mailto:[email protected]}   Ronsoft Technologies
>       +44 7879 358 212 (voice)          http://www.ronsoft.com
>       +1 707 924 3878 (fax)              Bit Twiddling At Its Finest
> "No amount of belief establishes any fact." -Unknown
>
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to