Received: by 10.43.51.137 with SMTP id vi9mr2440310icb.16.1349318767453; Wed, 03 Oct 2012 19:46:07 -0700 (PDT) X-BeenThere: mongodb-user@googlegroups.com Received: by 10.42.249.136 with SMTP id mk8ls5143723icb.9.gmail; Wed, 03 Oct 2012 19:45:56 -0700 (PDT) Received: by 10.50.181.233 with SMTP id dz9mr3211397igc.1.1349318756044; Wed, 03 Oct 2012 19:45:56 -0700 (PDT) Received: by 10.50.181.233 with SMTP id dz9mr3211394igc.1.1349318756015; Wed, 03 Oct 2012 19:45:56 -0700 (PDT) Return-Path: Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) by gmr-mx.google.com with ESMTPS id dx8si1144141igc.1.2012.10.03.19.45.55 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Oct 2012 19:45:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.223.174 is neither permitted nor denied by best guess record for domain of tom...@nexcel.vn) client-ip=209.85.223.174; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.223.174 is neither permitted nor denied by best guess record for domain of tom...@nexcel.vn) smtp.mail=tom...@nexcel.vn Received: by mail-ie0-f174.google.com with SMTP id k13so38792iea.5 for ; Wed, 03 Oct 2012 19:45:55 -0700 (PDT) d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=hwoCTW9l1Qd3/H7zunQ70AaftG6LkQ5i3jYA+pvSByQ=; b=N1rLX7SW/Gbmt+q9eItWp59D1LIq2Zc8bsvbatf1622o+MWJowlCwYY6FO89+0BEXH CjwPMx29lct3jsfe/qzByro1cxOKbM4tZhUC+Wmn9OfxlVIhefsXQweKe8BlJ0pnBXvz MzCrkRDQ5zJnF2wPl+dF2YScqx/CPNTCttEUf5mE7iTZqkJpD1GHN4inv5LnxgZ5YYPW bZfrK76YB1V5e9I1tJSfCr4O4cQ9hrRhKUC2bIYMnvz7GcggvaldfIuLErEvfWeBM/GR 8cCvXesb0YCMnnciMZhGGcSvMpcYM+KQPQWQE26+D6ZQf5ePdv+PcvHHXqICri6O0sSY viHg== MIME-Version: 1.0 Received: by 10.50.15.132 with SMTP id x4mr3746296igc.58.1349318755250; Wed, 03 Oct 2012 19:45:55 -0700 (PDT) Received: by 10.64.39.14 with HTTP; Wed, 3 Oct 2012 19:45:55 -0700 (PDT) In-Reply-To: <58a18165-31ef-43a6-9f54-9cfa604058d9@googlegroups.com> References: <58a18165-31ef-43a6-9f54-9cfa604058d9@googlegroups.com> Date: Thu, 4 Oct 2012 09:45:55 +0700 Message-ID: Subject: Re: [mongodb-user] Re: Job Schedule in Mongodb From: Tom Vo To: mongodb-user@googlegroups.com Content-Type: multipart/alternative; boundary=14dae934032d1871ee04cb32c1ae X-Gm-Message-State: ALoCoQmqCOVrJJRnWMo9+rzAmnlw7/mLjkXmZp7t+S2nAWo7a6y8wKg1Rs9bIoL53MZO5SB4YYKq --14dae934032d1871ee04cb32c1ae Content-Type: text/plain; charset=ISO-8859-1 Hi William 1) As your guide, I should not use Stored JavaScript Procedures on MongoDB. I have to execute JavaScript file on Mongo Client. 2) You said that the JavaScript engine is single-threaded. That's mean MongoDB will be write locked when this script have not been finished. Could you give me document introduce about them? http://www.mongodb.org/display/DOCS/Server-side+Code+Execution Thank you for your reply and kindly supports. On Wed, Oct 3, 2012 at 11:58 PM, William Zola wrote: > > > 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. >> > -- > You received this message because you are subscribed to the Google > Groups "mongodb-user" group. > To post to this group, send email to mongodb-user@googlegroups.com > To unsubscribe from this group, send email to > mongodb-user+unsubscribe@googlegroups.com > See also the IRC channel -- freenode.net#mongodb > -- Thanks and Best Regards ------------------------------------------------------------------------------------------------------------- *Tom Vo* --14dae934032d1871ee04cb32c1ae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi William
1) As your guide, I should not use Stored JavaScript Procedu= res on MongoDB. I have to execute JavaScript file on Mongo Client.=A0
=

2) You said that the JavaScript engine is single-thread= ed. That's mean=A0MongoDB=A0will be write locked when this script have = not been finished. Could you give me document introduce about them?=A0

Thank you for your reply and kindly supports.=

On Wed, Oct 3, 2012 at 11:58 PM, Willia= m Zola <william.z...@10gen.com> wrote:


Hi Tom!

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

2) MongoDB currently does not have any ability to schedule any tasks to= run.=A0 There is an existing SERVER ticket with a request to add this func= tionality.=A0 You can follow this ticket and vote it up here: https://jira.m= ongodb.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.=A0 For example, 'cron'= ; on Unix/Linux.

Have a great day!

=A0-William
<= br>
On Tuesday, October 2, 2012 7:43:52 PM UTC-7, Tom Vo wrote: Dear all
Mongodb have support JS function like store procedure, functio= n in SQL Server. Does Mongodb have to support Job Schedule? How do you do o= n it?

Thanks and Regards.

--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@googlegroups.com
See also the IRC channel -- freenode.net#mongodb



--
=
Thanks and Best Regards
--------------------------------------------= -----------------------------------------------------------------
Tom= Vo
--14dae934032d1871ee04cb32c1ae--