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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -