Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: precalculating event dates vs.recalculating them.

by apl (Monsignor)
on Jun 22, 2008 at 22:31 UTC ( #693417=note: print w/replies, xml ) Need Help??


in reply to precalculating event dates vs.recalculating them.

If not storing each recurrence of an event is a requirement, I'd have a crontab job (or equivalent) run each day at local midnight to determine what recurring events were going to take place in the coming day, and to then add them to the DB.

That is, essentially the same thing you'd have to do each time the calendar is viewd, but only once per day as opposed to each viewing.

  • Comment on Re: precalculating event dates vs.recalculating them.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://693417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-06-02 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (16 votes). Check out past polls.

    Notices?