On Jul 27, 10:09 pm, badnaam
<asitkmis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I notice that there is a line in the logs called User Columns (1.3ms)
> [0m [0mSHOW FIELDS FROM `users` [0m, anytime I issue a query
> against a model, even if the queries don''t do anything to the user
> model. This happens even on the console.
>
> Any ideas where this is coming from? Whats the best way to trace which
> part of the code is issuing these queries?
>
That rails looking at the structure of your database. In production
these lookups are cached.
Fred
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.