mongodb - How to perform tasks that are related to time and dates in the database? -
i have database , api server doing data juggling in database. users can add entities, update them , crud things.
some entities have fields paiduntil
, expirationdate
, like.
i want perform actions automatically when field in database entry triggers criteria, or don't want users able action entities data doesn't comply criteria due time passing.
what strategies manage these tasks? should cron
tasks or check criteria on each entry query. may there event-based mechanism can use, event-based databases or addons?
Comments
Post a Comment