Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Perf tweaks.

  • Loading branch information...
commit 050a57e49aad60dff67834d2a1339afff19d919d 1 parent a6f089f
@pwnall authored
View
2  app/controllers/listings_controller.rb
@@ -2,7 +2,7 @@ class ListingsController < ApplicationController
# GET /listings
# GET /listings.xml
def index
- @listings = Listing.all
+ @listing_count = Listing.count
respond_to do |format|
format.html # index.html.erb
View
BIN  app/views/listings/index.html.erb
Binary file not shown
View
2  script/populator.rb
@@ -13,7 +13,7 @@
exit
end
-ENV['RAILS_ENV'] ||= 'development'
+ENV['RAILS_ENV'] ||= 'production'
page_url = ARGV[0]
page_limit = ARGV[1] && ARGV[1].to_i
Please sign in to comment.
Something went wrong with that request. Please try again.