From: Thomas Wood Date: Tue, 21 Apr 2009 18:04:43 +0000 (+0000) Subject: Slight performance improvement (a reported 2s) by skipping db query if no bbox is... X-Git-Tag: live~7574 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d8aacff59557d59594971bfac52b762db058943f Slight performance improvement (a reported 2s) by skipping db query if no bbox is passed in on /history Thanks apmon for the report. --- diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 4913a600e..243609290 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -356,6 +356,10 @@ class ChangesetController < ApplicationController else #TODO: fix bugs in location determination for history tab (and other tabs) then uncomment this redirect #redirect_to :action => 'list' + + # For now just render immediately, and skip the db + render + return end conditions = conditions_bbox(bbox);