Re: [MarkLogic Dev General] General Digest, Vol 148, Issue 26

2016-10-17 Thread Shiv Shankar
ein. > Why it s taking time to persists the documents in to the database when I > do with JavaScript? Any thoughts. > > Reegards > Shiv. > > > > > > ___ > Gene

Re: [MarkLogic Dev General] xdmp:query-meters performance and use

2016-10-17 Thread James Kerr
If you haven’t found it yet, you can use xdmp:elapsed-time() (see https://docs.marklogic.com/xdmp:elapsed-time) to return the elapsed time without the query meters overhead. fn:current-dateTime() returns the same value throughout the execution of a statement. -James From:

Re: [MarkLogic Dev General] search after xdmp.documentInsert() getting 0 results

2016-10-17 Thread David Gorbet
Note that this is not quite true. Changes to documents are not visible to other code in the same statement, but when executing a multi-statement transaction, changes made in one statement are visible to subsequent statements within the same transaction. So a transaction can read a modification

Re: [MarkLogic Dev General] Why does fn:replace gives an error when second argument exceeds certain length

2016-10-17 Thread Florent Georges
Hi, Johan does not seem to have got any answer on this one. Is it a hard limit, to be less than 1,500 chars for a regex? Is this limit going to be kept in ML9? Just curious... Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 22 August 2016 at 13:41, Florent