On Tue, May 19, 2009 at 8:57 AM, Jodi Showers <[email protected]> wrote:

>
> Morgan -
>
> On 19-May-09, at 10:57 AM, Morgan Morgan wrote:
>
> >
> > so..
> >
> > I'm making a scheduler..   i have a table of scheduled and
> > scheduleable
> > hours for multiple users which needs to be turned into a view (with
> > schedule type as there are 4 different types) of 7 days of those
> > scheduled and scheduleable hours for multiple users..
> >
> > right now i've a loop which iterates over every hour and tests it
> > against all the returned scheduleable and scheduled hours for those 7
> > days...
> >
> > it's really slow.. the loop that figures out the schedule type runs
> > like
> > 1000 times and just obliterates my processor locally while it's
> > running.
>
> take a look at the runt gem..runt is a temporal expression api
>
> http://runt.rubyforge.org/doc/files/doc/tutorial_schedule_rdoc.html
>
> http://runt.rubyforge.org/doc/files/doc/tutorial_te_rdoc.html
>
> Jodi
>

Jodi, thanks for posting the above two links and I'm sure that others will
find them helpful as well.

-Conrad

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to