Permalink
Browse files

Perf tweaks.

  • Loading branch information...
1 parent a6f089f commit 050a57e49aad60dff67834d2a1339afff19d919d @pwnall committed Jul 17, 2010
@@ -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
Binary file not shown.
View
@@ -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

0 comments on commit 050a57e

Please sign in to comment.