User Column

0 views
Skip to first unread message

badnaam

unread,
Jul 27, 2010, 5:09:07 PM7/27/10
to Ruby on Rails: Talk
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?

Thanks

Frederick Cheung

unread,
Jul 27, 2010, 5:10:43 PM7/27/10
to Ruby on Rails: Talk
That rails looking at the structure of your database. In production
these lookups are cached.

Fred
Reply all
Reply to author
Forward
0 new messages