Stored Procedure Feature in MongoDB

56 views
Skip to first unread message

Anonymous

unread,
Dec 17, 2019, 3:55:17 PM12/17/19
to mongodb-user
Hi All,

I want to run a command every hour to update registered user data in the database without using node cron jobs. Is there any way to do so the same as SQL Server Agent? And is it a better option to schedule such things on DB itself without making Server involvement. What is the best approach to do so?


Krati Singh

unread,
Dec 18, 2019, 11:11:16 AM12/18/19
to mongod...@googlegroups.com
JS script at mongo server could be used and can be triggered via OS scheduler. 

On Wed, 18 Dec 2019, 02:24 Anonymous, <neha_...@rvtechnologies.com> wrote:
Hi All,

I want to run a command every hour to update registered user data in the database without using node cron jobs. Is there any way to do so the same as SQL Server Agent? And is it a better option to schedule such things on DB itself without making Server involvement. What is the best approach to do so?


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/df06ef66-1171-4ae7-a955-932c7b7cbddf%40googlegroups.com.

Kevin Adistambha

unread,
Dec 19, 2019, 6:59:09 PM12/19/19
to mongodb-user

Hi,

Currently there is no stored procedure equivalent in MongoDB, unfortunately, so any cron-like processing should use an external script triggered by cron or an equivalent.

What is your use case? Could you provide more details?

Best regards,
Kevin

Reply all
Reply to author
Forward
0 new messages