Came to say what Ron said. You don't want a single process running for 6 hours. 
You'd have to have extremely long timeout settings (which is dangerous in case 
something else runs for too long and for locking resources), and if something 
errored at any time then the entire transaction would be rolled back. You are 
going to want to break the task into smaller jobs and put each job on the task 
server. This will also give you much better performance than a single process.

If you are loading documents, you can use tools like Information Studio which 
comes with MarkLogic, or some of the other tools like what Ron mentioned. Using 
the task server isn't too hard so I'd suggest looking at that regardless and 
then picking what looks best for your situation/

> From: r...@ronsoft.com
> Date: Mon, 12 Mar 2012 22:39:26 +0000
> To: general@developer.marklogic.com
> Subject: Re: [MarkLogic Dev General] Time limit exceeded
> 
> 
>    You set the time limit on the appserver page in
> the Admin UI: max time limit and default time limit.
> 
>    But if you're trying to do lots of updates, in the 100s
> of thousands or millions, in a single transaction, it may
> still blow up.  Your code will need to acquire locks and
> other resources as the transaction progresses.
> 
>    You're better off using a batch processing tool like
> CORB that makes updates in reasonably sized chunks.
> 
> On Mar 12, 2012, at 9:47 PM, Shah, Mehul (LNG-NPV) wrote:
> 
> > I keep getting "Time limit exceeded" message for long running script.
> > 
> > I have a Xquery script that processes documents, and I want to make sure it 
> > does not timeout for say 6 hours, is there a way to set it?
> > 
> > Thanks.
> > 
> > _______________________________________________
> > General mailing list
> > General@developer.marklogic.com
> > http://developer.marklogic.com/mailman/listinfo/general
> 
> ---
> Ron Hitchens {mailto:r...@ronsoft.com}   Ronsoft Technologies
>      +44 7879 358 212 (voice)          http://www.ronsoft.com
>      +1 707 924 3878 (fax)              Bit Twiddling At Its Finest
> "No amount of belief establishes any fact." -Unknown
> 
> 
> 
> 
> _______________________________________________
> 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