I have a rails application that about 3 years old, and I’m having a problem with my pages making too many queries. Every page that loads has several lines that look like this:
ReqTdsLink Columns (1.0ms) SHOW FIELDS FROM `req_tds_links`
what sort of method call would cause this output in the log? I can’t find any before filters, or anything else in the application controller that could be causing this, but I have yet to check all the views (which are astronomical in number) I’d like to have something specific to look for before i start manually scanning each file for something that might cause this.
thanks,
-C
Are you running in development or production mode?
SHOW FIELDS FROM foois done by your model, as you noted, so it knows which accessor methods to generate.In development mode, this is done every request so you don’t need to reload your webserver so often, but in production mode this information should be cached, even if you’re running a three year old version of Rails.