Oh! Thanks for the clarification (and you too Danny - pity you can't 
reply to two messages at once).  I have some catch-up reading to do I 
guess ...

On 07/05/2012 03:54 PM, Michael Blakeley wrote:
> I agree about maintain-last-modified, but directory fragments are not 
> necessary for xdmp:directory-delete or xdmp:directory. 
> http://blakeley.com/blogofile/2012/03/19/directory-assistance/ tries to 
> explain that the database index includes special term entries for 
> directories, whether the directory fragment exists or not.
>
> Once directory-creation=manual, you might want to delete any existing 
> directory fragments.
>
>      
> xdmp:document-properties()/prop:properties[prop:directory]/xdmp:node-delete(.)
>
> If you have a large number of directories, it may be easier to delete a few 
> at a time:
>
>      (xdmp:document-properties()/prop:properties[prop:directory])[1 to 
> 1000]/xdmp:node-delete(.)
>
> The URI lexicon would make that easier too, but only if you already have it 
> enabled.
>
> -- Mike
>
> On 5 Jul 2012, at 12:50 , Mike Sokolov wrote:
>
>    
>> It's useful for xdmp:directory-delete(), which deletes all the documents
>> in the directory in one fell swoop (assuming it doesn't time out first).
>>
>> I also find it useful for doing ad hoc queries with xdmp:directory(),
>> but you probably have other fields you can query on that may be equivalent.
>>
>> If you are removing unneeded stuff, you might also check whether you
>> have "maintain time last modified" turned on.  It can be useful, but if
>> you don't need it I think you can save the need to create a properties
>> document for every document if you turn that off and also turn off
>> directory creation.  You may have noticed that you have twice as many
>> fragments as documents - that's why, I think.
>>
>> There might also be some savings from disabling "inherit collections"
>> and "inherit permissions" if you never use those things. I'm less sure
>> about that though.
>>
>> -Mike
>>
>> On 07/05/2012 03:14 PM, Alex Milowski wrote:
>>      
>>> Ah!  Yes I do.  That number of directories looks suspiciously close to
>>> the number of stations I have stored in my database.  That would
>>> probably account for it.
>>>
>>> I'll never use WebDAV on this database give the large number of small
>>> documents, so I can turn that off.  Is there any other reason why I
>>> would want that on?
>>>
>>> On Thu, Jul 5, 2012 at 11:49 AM, Will Thompson
>>> <wthomp...@jonesmcclure.com>   wrote:
>>>
>>>        
>>>> Do you have directory creation set to automatic in your database settings?
>>>>
>>>> -Will
>>>>
>>>> -----Original Message-----
>>>> From: general-boun...@developer.marklogic.com 
>>>> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Alex Milowski
>>>> Sent: Thursday, July 05, 2012 11:48 AM
>>>> To: MarkLogic Developer Discussion
>>>> Subject: Re: [MarkLogic Dev General] Listing Directories?
>>>>
>>>> On Thu, Jul 5, 2012 at 11:37 AM, Danny 
>>>> Sokolsky<danny.sokol...@marklogic.com>   wrote:
>>>>
>>>>          
>>>>> You don't need the URI lexicon for the xdmp:estimate one.
>>>>>
>>>>>            
>>>> OK.  Good to know.
>>>>
>>>> What I really want to know is the name and purpose of these directories 
>>>> since I don't actually create them explicitly.
>>>>
>>>> --
>>>> --Alex Milowski
>>>> "The excellence of grammar as a guide is proportional to the paucity of 
>>>> the inflexions, i.e. to the degree of analysis effected by the language 
>>>> considered."
>>>>
>>>> Bertrand Russell in a footnote of Principles of Mathematics 
>>>> _______________________________________________
>>>> General mailing list
>>>> General@developer.marklogic.com
>>>> http://developer.marklogic.com/mailman/listinfo/general
>>>> _______________________________________________
>>>> General mailing list
>>>> General@developer.marklogic.com
>>>> http://developer.marklogic.com/mailman/listinfo/general
>>>>
>>>>          
>>>
>>>
>>>        
>> _______________________________________________
>> General mailing list
>> General@developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>      
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>    
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to