Received: by 10.66.77.41 with SMTP id p9mr580719paw.8.1349283550457; Wed, 03 Oct 2012 09:59:10 -0700 (PDT) X-BeenThere: mongodb-user@googlegroups.com Received: by 10.68.222.169 with SMTP id qn9ls6951442pbc.4.gmail; Wed, 03 Oct 2012 09:58:56 -0700 (PDT) Received: by 10.68.135.103 with SMTP id pr7mr1470233pbb.7.1349283536548; Wed, 03 Oct 2012 09:58:56 -0700 (PDT) Date: Wed, 3 Oct 2012 09:58:56 -0700 (PDT) From: William Zola To: mongodb-user@googlegroups.com Message-Id: <58a18165-31ef-43a6-9f54-9cfa604058d9@googlegroups.com> In-Reply-To: References: Subject: Re: Job Schedule in Mongodb MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_623_3252953.1349283536196" ------=_Part_623_3252953.1349283536196 Content-Type: multipart/alternative; boundary="----=_Part_624_12225286.1349283536196" ------=_Part_624_12225286.1349283536196 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Tom! 1) You should avoid using MongoDB stored JavaScript procedures if you possibly can. The JavaScript engine is single-threaded. If you run critical processes using the JavaScript stored procedures you are likely to have performance problems. 2) MongoDB currently does not have any ability to schedule any tasks to run. There is an existing SERVER ticket with a request to add this functionality. You can follow this ticket and vote it up here: https://jira.mongodb.org/browse/SERVER-2573 3) If you want to schedule a task to run in MongoDB, the best way to do this is with the operating system scheduler. For example, 'cron' on Unix/Linux. Have a great day! -William On Tuesday, October 2, 2012 7:43:52 PM UTC-7, Tom Vo wrote: > > Dear all > Mongodb have support JS function like store procedure, function in SQL > Server. Does Mongodb have to support Job Schedule? How do you do on it? > > Thanks and Regards. > ------=_Part_624_12225286.1349283536196 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Hi Tom!

1) You should avoid using MongoDB stored JavaScript = procedures if you possibly can.  The JavaScript engine is single-threa= ded.  If you run critical processes using the JavaScript stored proced= ures you are likely to have performance problems.

2) MongoDB current= ly does not have any ability to schedule any tasks to run.  There is a= n existing SERVER ticket with a request to add this functionality.  Yo= u can follow this ticket and vote it up here: https://jira.mongodb.org/brow= se/SERVER-2573

3) If you want to schedule a task to run in MongoDB, = the best way to do this is with the operating system scheduler.  For e= xample, 'cron' on Unix/Linux.

Have a great day!

 -Willia= m


On Tuesday, October 2, 2012 7:43:52 PM UTC-7, Tom Vo wrote:Dear all
Mongodb have suppor= t JS function like store procedure, function in SQL Server. Does Mongodb ha= ve to support Job Schedule? How do you do on it?

T= hanks and Regards.
------=_Part_624_12225286.1349283536196-- ------=_Part_623_3252953.1349283536196--