Displaying 1 result from an estimated 1 matches for "assignment_name".
2008 Dec 08
3
Database calls in my views?
...data from 5 separate tables. There
is a lot of logic that goes into supporting the Model the entire app
is designed around (appropriately named the DaySchedule object).
Within the views there are a lot of calls made from database
associations(DaySchedule.employee.full_name,
DaySchedule.assignment.assignment_name, you get the idea). These
related models are vital for the views, but I know that they are
killing my render time . . . I also know that db access in the views
is a big no no.
I was wondering what others did when faced with this? My thought has
been to initialize a bunch of "virtual attribute...