webburu — 2009-12-17T02:09:24-05:00 — #1
I wonder what is the best way to model the task management? Let's say we have task(id,title,startdate,enddate...) and we also have recurring tasks which could be daily, weekly,monthly and these recurring tasks happens in a period of time?
r937 — 2009-12-17T06:05:13-05:00 — #2
are you sure that daily, weekly, monthly are the ~only~ recurrences you want to model?
what about every second tuesday? the fourth thursday of every month? etc.
webburu — 2009-12-17T12:30:56-05:00 — #3
I think that complicated enough I think I need to model. I am trying to find the best models in terms of performance when I retrieve the data. Thanks!
rblon — 2010-01-08T07:01:45-05:00 — #4
To me it doesn't seem a database problem. The easy thing is to store the tasks (and i would be generic for that purpose, perhaps use crontab as example); the complicated issue is to design the process which will coordinate the tasks. This process has to know when to start a new task, ideally by sleeping in between tasks instead of polling the database.