Here's what I have
http://yfrog.com/f/m9a0gj/

I see that you have memcached and active record in your graph.  I
don't use memcached, and am using mongoid instead of active record, so
if you pull all that out of your graph, I suppose it is the same.

One question is whether or not RPM can tell when my code is what is
churning vs when I am waiting for a response from mongodb.  7 seconds
to do this:

Controller -------
  def index
                page_size = params[:page_size].nil? ? 40 : 
params[:page_size].to_i
                respond_with(@ideas_to_rate = GiftIdea.unrated_by(get_user_id,
page_size).to_a)
  end

GiftIdea ------
        scope :decent, :where => {:sales_rank.lt => 1200}
        scope :unrated_by, lambda {|user_id, limit|
                ids_to_exclude = Rating.only(:rateable_id).where(:user_id =>
user_id).
                                collect{|r| r.rateable_id}
                total_idea_pool = GiftIdea.total_ideas - ids_to_exclude.size - 
limit
                skip = total_idea_pool > 0 ? rand(total_idea_pool) : 0
                Rails.logger.info("TotalIdeas: #{total_idea_pool} Skip: #{skip}
Limit: #{limit} IdeasToExclude: #{ids_to_exclude.join(',')}")
                decent.not_in(:_id => ids_to_exclude).skip(skip).limit(limit)
        }

seems absurd.  :-)



On Sep 1, 9:56 am, Neil Middleton <[email protected]> wrote:
> Here's a snapshot of a production Rails 3 running NewRelic Bronze (on
> Heroku).
>
> Are you seeing the same level of detail?
>
> http://i54.tinypic.com/e04do0.png
>
> N
>
>
>
>
>
> On Wed, Sep 1, 2010 at 2:51 PM, JDeville <[email protected]> wrote:
> > Sorry, one more bit of info, I'm using mongoid, so I'm not expecting
> > active record information, but I do expect to be able to dig in to the
> > mongoid code if that is where the slowness is occurring.
>
> > On Sep 1, 9:48 am, JDeville <[email protected]> wrote:
> > > I have a controller that's slow every now and then, but can't figure
> > > out why. I've gone all the way up to gold with NewRelic, and the
> > > tracing doesn't go any further than the controller action, which
> > > doesn't really help me identify where my problem is.  Is NewRelic not
> > > working properly with rails 3 yet?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Heroku" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<heroku%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/heroku?hl=en.
>
> --
> Neil Middleton

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to