[MarkLogic Dev General] Delete URI from a directory which contains more file

Danny Sokolsky Danny.Sokolsky at marklogic.com
Fri Oct 11 09:28:21 PDT 2013


Hi Gurbeer,

Do you have maintain directory last modified set on the database?  That setting will cause a lot of locks to occur.  If it is true, true, try setting it to false and see what happens.

Also, what version of MarkLogic ( xdmp:version() )?

-Danny

From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Singh, Gurbeer
Sent: Friday, October 11, 2013 9:18 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Delete URI from a directory which contains more file

Actually this directory is very big 54267 MB
I tried to delete  all URI , but its hanging , so I thought to try one by one. But no luck

~Gurbeer

From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Harry B.
Sent: Thursday, October 10, 2013 8:27 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Delete URI from a directory which contains more file

That's odd. I've never had xdmp:document-delete() work slowly when there's hundreds of thousands of documents in a directory. You can have problems with directory-based operations, but a single URI is not affected by this. Is this document abnormally large or have some other problem that causes it to not delete?

On Wed, Oct 9, 2013 at 3:20 PM, Singh, Gurbeer <Gurbeer.Singh at morganstanley.com<mailto:Gurbeer.Singh at morganstanley.com>> wrote:

Delete URI from a directory which contains file count '304528'



I am running simple query



let $docURI:="/docsIn/1034916_meta.xml"

(:return fn:doc($docURI):)

return

xdmp:document-delete($docURI)





Its taking so much time  not working .





~Gurbeer

________________________________

NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.

_______________________________________________
General mailing list
General at developer.marklogic.com<mailto:General at developer.marklogic.com>
http://developer.marklogic.com/mailman/listinfo/general


________________________________

NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20131011/39404693/attachment-0001.html 


More information about the General mailing list