User Column

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

On Jul 27, 10:09 pm, badnaam [email protected] 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