Finding what methods talk to the DB!

Hi all,

I am now working on performance tuning. I am still a newbie thus I am
not talking about “full blown performance tuning”. What I do now is
just tracking my development.log to find whether I accidentally make
redundant queries because of my misunderstanding of ActiveRecord,
redundant AJAX calls, or logical mistakes.

The questions:

  1. From what I understand the standard log_level for development is
    :debug. Are there more settings to make the development.log more
    verbose?
  2. How can I tell what methods (and if available at what line number)
    issue commands to DB?
  3. Is there any tools which can help my activity?

Thanks in advance,
John

John I. wrote:

The questions:

  1. From what I understand the standard log_level for development is
    :debug. Are there more settings to make the development.log more
    verbose?
  2. How can I tell what methods (and if available at what line number)
    issue commands to DB?
  3. Is there any tools which can help my activity?

Hi John,

this article may help you:
http://wiki.rubyonrails.org/rails/pages/HowtoConfigureLogging

Regards,
Antonio

Zen and the Art of Ruby P.ming