Hi,

No, the output will be the same. In fact all calls to that function throughout 
the request will return the same value (effectively the request timestamp). 
Wrapping the call in another function will create a marginal overhead though, 
but depending on how often it would get called, not by much, or not noticeable 
at all..

Cheers,
Geert

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of sweet frd 
<[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Thursday, November 17, 2016 at 12:46 PM
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] fn:current-dateTime()

Hi All,

I have a module somemodule.xqy which has the following line for logic

fn:current-dateTime()


Will there be a difference in output for the below scenarios

(a) Invoke the above xquery (somemodule.xqy) in main module

(b) Directly invoke the function fn:current-dateTime() in the main module


Regards,
N. Sumathi.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to