Hi Florent,

 

To put it short, they changed the behavior so that you no longer need 
directories for internal operation. That used to be different if I am not 
mistaken. They changed the database default around the same time. The only case 
where you really need them is for WebDAV. Otherwise you can still use them for 
storing general properties, like DLS does, but you don't need them. It saves 
you from getting lock retention on those dir fragments as well.

 

Good ways to check if you really have dirs: cts:uri-match("*/"), and 
exists(xdmp:document-properties("/a/b/")//prop:directory)

 

Cheers,

Geert

 

Van: [email protected] 
[mailto:[email protected]] Namens David Ennis
Verzonden: dinsdag 13 mei 2014 22:38
Aan: MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] Directory creation set to manual. ML 
creates anyway?

 

In addition,

 

Michael Blakeley shared this nice piece on directories vs directories

 

  <http://blakeley.com/blogofile/2012/03/19/directory-assistance/> 
http://blakeley.com/blogofile/2012/03/19/directory-assistance/

 

It's a fun read and may help you get your head around what 'directory' means in 
different contexts.

 

Regards,

David Ennis

 

On 13 May 2014 16:39, Jakob Fix <[email protected] 
<mailto:[email protected]> > wrote:

probably best explained here: 
http://blog.davidcassel.net/2012/05/directory-creation-setting/




cheers,
Jakob.

 

On Tue, May 13, 2014 at 4:33 PM, Florent Georges <[email protected] 
<mailto:[email protected]> > wrote:

  Hi,

  I have a database with "directory creation" set to "manual".  The
following expression:

    xdmp:directory('/hello/', '1')/document-uri(.)

returns nothing (the empty sequence).  Then I evaluate the following:

    xdmp:document-insert('/hello/world.xml', <hello>World!</hello>)

which succeeds.  I can see the document.  I do not create any dir
manually, so I don't expect MarkLogic to create any automatically
either (since "directory creation" is set to "manual").  Although,
evaluating the following expression again:

    xdmp:directory('/hello/', '1')/document-uri(.)

gives the following result:

    '/hello/world.xml'

  Tested on MarkLogic 7.0-2.3, through QConsole (besides the admin
console for the database creation).

  What did I miss?

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/




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

 


_______________________________________________
General mailing list
[email protected] <mailto:[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