Event scheduler (cronjob) in MongoDB?

后端 未结 2 1481
再見小時候
再見小時候 2021-01-25 06:00

How can i set an event in Mongodb?

I will create an event that every 4 hours Calculate fields (SUM|COUNT) in the Collection And Save it. What is the best So

2条回答
  •  伪装坚强ぢ
    2021-01-25 06:28

    Try MongoDB Cron package. It's a simple API for scheduling tasks and running recurring jobs on MongoDB collections. Any collection can be converted into a job queue or crontab list.

提交回复
热议问题