SHOW FIELDS in find query

When I use find(:all) ActiveRecord method, first it asks for attributes
names, using MySql query SHOW FIELDS
Is there a way to avoid generating that query, and write the names of
the attributes manually somewhere?

Why exactly do you want to do that?

If you run Rails in production mode, this query is only executed once
for each time the server is started, I believe. In dev mode, it is run
for every request.

Max

Max M. wrote:

Why exactly do you want to do that?

If you run Rails in production mode, this query is only executed once
for each time the server is started, I believe. In dev mode, it is run
for every request.

Max

Oh, if it is only executed on server start that’s great:)
Yes, I’m developing my first Rails application in the dev mode so I see
this query being executed for every request
Tks