Hello all,

When I have a syntax error accessing my model's index action the
server shows an SQL call to load an all of that model. Since there are
700k+ entries, this always causes a crash.

This ONLY happens the app goes into error catching mode.

I have traced the query to using this method 
https://github.com/ntalbott/query_trace
and have the following:

https://gist.github.com/959097

So here is what I found out. On the error page under the "Show env
dump" link it is inspecting the variables passed to the templates, one
of which is an Alarm.search(nil) [Meta search] object. This is where
all of these entries are being loaded from.

How can I prevent the debug page from loading these associations?

Brian

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