I am looking for a good pattern to handle cron-type data in a MongoDB collection (or collections). I have been peeking at the O'Reilly book MongoDB Applied Design Patterns and poking around the MongoDB site's Use Cases site but neither seems to to cover this type of data.
Is there a good pattern for storing repeating schedules that would lend itself to being able to find documents matching the current schedule, or should I simply store the data same as crontab and do all the calculations in-app?
Aucun commentaire:
Enregistrer un commentaire