Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8909437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:25:51+00:00 2026-06-15T03:25:51+00:00

I have a Rails app running on rackspace on postgreSQL. It is really slow.

  • 0

I have a Rails app running on rackspace on postgreSQL.

It is really slow.

On special requests it uses up to 4 sec to respond

I have installed new relic.

I can see that for example the index action of some controllers are the slowest. They are really simple with a few finds.

So, I really don’t understand what slows it down.

I wonder if you all can mention some gems that can find performance issues?

I know about bullet, that helps with finding n+1 queries to the database, but that is not my problem.

By request I add the index action of the projects controller(average of 4000 ms response time)

def index
    @firm = current_firm
    @projects = current_user.projects.is_active
    @customers = @firm.customers
    @project = Project.new
    @todo = Todo.new
end

The is_active method is a scope in the model

scope :is_active, where(["active = ?", true])

From the application controller I have some helpers and before_filters. One of them could be the problem(or something else) That’s why I’d like to have some tools for tracking down performance issues.

Update
looking at the production.log I see

Rendered logs/_list_header.html.erb (0.3ms)
Rendered logs/_log.html.erb (127.7ms)
Rendered private/log_range.js.erb (721.2ms)
Completed 200 OK in 836ms (Views: 733.2ms | ActiveRecord: 43.9ms)

Processing by ProjectsController#index as HTML
Rendered projects/_index.html.erb (4149.8ms)
Rendered projects/index.html.erb within layouts/application (4157.0ms)
Rendered layouts/_header.html.erb (0.3ms)
Completed 200 OK in 6682ms (Views: 4199.6ms | ActiveRecord: 457.0ms)

Processing by LogsController#stop_tracking as JS
Parameters: xxxxx
Rendered logs/_tracking_partial.html.erb (121.1ms)
Rendered logs/_start_tracking.html.erb (6877.9ms)
Rendered logs/_log.html.erb (43.0ms)
Rendered logs/stop_tracking.js.erb (7224.0ms)
Completed 200 OK in 9968ms (Views: 7617.2ms | ActiveRecord: 455.3ms)

look at the last one. A lot of time spent rendering views and js. What can cause this. There is no finds in the views. I just use a instance variable form the controller. And there is less than 20 entries in the database. Could this be caused by a slow internet connection on the computer accessing these views?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:25:52+00:00Added an answer on June 15, 2026 at 3:25 am

    The problem was the asset pipeline

    I had some css and js files that was not precompiled. I did not get any error messages, but you have to be accurate with the naming. No “.” in the file name and no “.css”

    indexing did not help. But, it will probably increase performance when there is more entries in the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Rails app installed on a Slicehost server running Apache 2 and
I have a rails app running a thin server on heroku. It currently uses
I have a rails 3 app which uses resque to run long running jobs
I have a Rails app running Mongoid on Heroku and I need to set
I have a rails app running on port 3000. The page in question has
I have a rails app running on passenger standalone, which is working perfectly. I
I have a Rails app (running 3.2.2) and I want to cache my users'
I have a ruby on rails app running a server and sometimes it needs
I have a Ruby on Rails app running on my server, and I can't
I have a single-threaded Rails app running on thin in single-threaded mode on Heroku

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.