Thanks Geert and Pradeep for reply ! Actualy the things required in my 
case is a kind of one time activity so I guess Spawning  will be a better 
option.

Thanks and Regards
Abhishek Srivastav
Assistant Systems Engineer
Tata Consultancy Services
Plot  B-1, Block EP & GP, Sector 5
Salt Lake Electronics Complex,
Kolkata - 700 091,West Bengal
India
Cell:- +91-9883389968
Mailto: abhishek5...@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.   IT Services
                        Business Solutions
                        Outsourcing
____________________________________________



From:
Geert Josten <geert.jos...@daidalos.nl>
To:
General MarkLogic Developer Discussion <general@developer.marklogic.com>
Date:
05/02/2011 07:08 PM
Subject:
Re: [MarkLogic Dev General] Bulk Update
Sent by:
general-boun...@developer.marklogic.com



Hi Abishek,

Spawning a call to a main module that updates a single doc or a batch of 
documents, as mentioned by Pradeep, is indeed the most straight-forward 
approach here. You could however also consider using the Content 
Processing Framework for this purpose. That might be worthwhile if 
updating needs to occur on a more regular basis.

Kind regards,
Geert

-----Oorspronkelijk bericht-----
Van: general-boun...@developer.marklogic.com [
mailto:general-boun...@developer.marklogic.com] Namens Pradeep Maddireddy
Verzonden: maandag 2 mei 2011 11:49
Aan: General MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] Bulk Update

Check if xdmp:spawn  helps.

Thanks
Pradeep Maddireddy

On 5/2/11, Abhishek53 S <abhishek5...@tcs.com> wrote:
> Hi ALL
>
> I want to update over a large set of xml. Marklogic suggest to perform
> bulk update over a set of  record. Say each set has 1000 records to be
> updated in a single transaction.
>
> My custom query is like
>         for $x in (1 to 1000)
>         return xdmp:node-replace()
>
> The above query need to run in a separate transaction using xdmp:eval()
> function ( isolation - separate transaction). But If the query will run
> over a long period  time It will get request time out exception.
>
> Please suggest the best approach to follow in this scenario. Can we run
> the bulk update in separate threads (No to XCC) if the records update 
are
> independent?
>
> Thanks in advance !
>
> Abhishek Srivastav
> Assistant Systems Engineer
> Tata Consultancy Services
> Plot  B-1, Block EP & GP, Sector 5
> Salt Lake Electronics Complex,
> Kolkata - 700 091,West Bengal
> India
> Cell:- +91-9883389968
> Mailto: abhishek5...@tcs.com
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty.   IT Services
>                         Business Solutions
>                         Outsourcing
> ____________________________________________
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
_______________________________________________
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


=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to