On 12 January 2011 21:14, Me <[email protected]> wrote:

To repeat, please quote the message you are replying to.  Thanks

> not sure what else to say.  If you have a db table with 2 lines that are
> never going to change.  You refactor that into the other model that
> references it and remove the original AR model.  I was wondering, when you
> remove the table if you were to keep the original model but refactor the
> stuf into that mode instead of the referring model does it consume the same
> memory, BW, whatever, as opposed to the AR version of the model.

A key fact missing previously was that you have a very small table and
could just hard code the data.
The answer is who cares?  Don't worry about it unless you have
performance or resource problems, in which case profile the code to
find out where the problem lies and then address it.  I can virtually
guarantee that the bottlenecks or resource hogs will not be in the
areas you might anticipate beforehand.

Colin

-- 
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