One thing to keep in mind is that the server was estimating that it would
take 60 hrs to complete the re-indexing. As re-indexing progresses it will
get more accurate, and depending on server load you may see that number
fluxuate quite a bit. 

Generally the way that I've handled development on large sets of content
where reindexing takes a non-trivial amount of time, is to work with a
subset of the data/content. This way I can create and remove indexes as
necessary in short order. Then once I'm confident that I have a workable
solution, I make the necessary configuration changes on the database
containing the complete content set. Once re-indexing has completed I'm free
to deploy the code.

-fs 


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Monday, March 02, 2009 4:23 AM
To: [email protected]
Subject: RE: [MarkLogic Dev General] ReIndexing takes too long


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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to