On Aug 3, 2007, at 17:23 , Brian Hogan wrote:

> Sure. Very much so... and that's exactly how I've been doing it.   
> So what I understand is that it's perfectly fine to query the  
> database that many times, because it's good for security and data  
> integrity. I can live with that. Just wanted to make sure that was  
> the best way to explain it to my students. Some people will surely  
> look at the sql logs and see four separate (albeit small) queries  
> and wonder why that's necessary, so I want to have a good answer  
> for them.

If performance were an issue, I'd benchmark it as is, then test it  
using a find_by_sql. So far, performance hasn't been an issue for me.  
I'd also have to figure out how to go about initializing models with  
the values pulled from that find_by_sql. Premature optimization, and  
all that.

MIchael Koziarski brings up an interesting point, however, and I'm  
interested in hearing discussion on that as well.

Michael Glaesemann
grzm seespotcode net



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to