Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-11-15 Thread Raghu
BTW mine was a modify/update trigger that was one reason I didn't suspect directory delete's behavior. But still it was on a directory and it starts making sense now!! :) On Tue, Nov 15, 2011 at 11:34 PM, Raghu wrote: > No I didn't mean that way. Sorry no offence meant. My point is I suspected >

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-11-15 Thread Raghu
No I didn't mean that way. Sorry no offence meant. My point is I suspected everything but triggers! On Tue, Nov 15, 2011 at 11:16 PM, Danny Sokolsky < danny.sokol...@marklogic.com> wrote: > I am not sure that is weird behavior. If you have a delete trigger that > has a lot of work to do, for exa

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-11-15 Thread Danny Sokolsky
I am not sure that is weird behavior. If you have a delete trigger that has a lot of work to do, for example, that would certainly impact the performance of deletes. So it all depends on the totality of what is going on in your environment. -Danny From: general-boun...@developer.marklogic.co

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-11-15 Thread Raghu
Hey Danny, Seems that I'd set triggers to triggers database and this was causing xdmp:directory-delete() not to work. Hope you had fixed this. I would have never suspected that triggers would have such an impact. weird behavior isn't it? Cheers Raghu On Tue, Oct 25, 2011 at 9:41

Re: [MarkLogic Dev General] Decreased performance afterreindexing database in MarkLogic 3.2

2011-11-15 Thread Damon Feldman
Mariano, Re-importing is often easier, but it depends on how fast your overall import process is, and if you have scripts or well-documented configuration steps to get your databases and app servers configured. For any product and any version, including MarkLogic, it is a good idea to upgrade

Re: [MarkLogic Dev General] Decreased performance afterreindexing database in MarkLogic 3.2

2011-11-15 Thread Michael Sokolov
Don't you think it would be better to export all data and re-import, rather than go through 5 upgrade steps? Also my impression was that Juan's question was about the advisability of moving to 5.0 considering that it's just out and may not be completely stable yet. Juan - it all depends on y

Re: [MarkLogic Dev General] Retrieving file name/document URI of binary content

2011-11-15 Thread Lee, David
functions can return sequences to xcc. try this as a simple example and build on declare function module:test() { [ 1 to 10 ] , "HI" , } David A. Lee Senior Principal Software Engineer Epocrates, Inc. d...@epocrates.com 81

Re: [MarkLogic Dev General] Retrieving file name/document URI of binary content

2011-11-15 Thread Amar Wakkar
Yes it does in an .xqy page or in query console. Now I am trying to get it to work inside XCC Java code but it does not work as it is in AdhocQuery class. Can we get multiple results out from a module which has this piece of code? Function can return just single value so that may not work in th