in this case you can use xdmp:directory("/", "infinity")[1 to 10000]
with same effect

by the way - i forgot to say that automatic reindexing is set by
default so you don`t need to reindex all database indexes after
modifying indexes i guess that your uris index cost about 1-3 hours of
reindexing time other is cost of reindexing any other indexes in your
database

so you can just set, modify or drop indexes - ML engine will do rest
of job with proper time

With best wishes,
Slav

On Mon, Mar 2, 2009 at 12:23 PM,  <[email protected]> wrote:
>
> Hi,
>
> I am trying to set up permissions for read and write users on the documents. 
> So I used the following query
> for $i in cts:uris()[1 to 10000]
> return
> xdmp:document-set-permissions($i,......)
> For this query to work, enabled the uri lexicon and reindexed the database. 
> Since the database reindex was taking a long time, completed setting 
> permission by using the following query
> for $i in doc()[1 to 10000]
> return
> xdmp:document-set-permissions($i,......)
>
> But if in future I need to set any other index say, element, attribute or 
> field level index to use certain Marklogic defined functions,
> reindexing the database would take a long time. What is the best approach in 
> such scenarios.
>
>
> Thanks ,
> Akhila
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Vyacheslav Sedov
> Sent: Monday, March 02, 2009 1:34 PM
> To: [email protected]; General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] ReIndexing takes too long
>
> if your database so big - probably your attempt to get *all* uris is
> not so good idea.
> What you want to do *after* you will get this huge list?
>
> With best wishes,
> Slav
>
> On Mon, Mar 2, 2009 at 10:26 AM, akhila reddy <[email protected]> 
> wrote:
>> Hi,
>>
>> I need to use cts:uris() to get all the uris from the databse, so IĀ enabled
>> uri lexicon to true and reindexed the database.The database status shows
>> more than 60hrs for the reindex to settle.( for around 47GB data)
>> Is there any work around for this, since each time a new index is created
>> waiting for so much time is not feasible always.
>> For eg: If a new element-range index is enabled , I need to wait for another
>> 60 hrs to use the function.
>>
>> Thanks,
>> Akhila.
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://xqzone.com/mailman/listinfo/general
>>
>>
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
>
> This e-mail and any files transmitted with it are for the sole use of the 
> intended recipient(s) and may contain confidential and privileged information.
> If you are not the intended recipient, please contact the sender by reply 
> e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
> or copying of this email or any action taken in reliance on this e-mail is 
> strictly prohibited and may be unlawful.
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to