From d8aacff59557d59594971bfac52b762db058943f Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Tue, 21 Apr 2009 18:04:43 +0000 Subject: [PATCH] Slight performance improvement (a reported 2s) by skipping db query if no bbox is passed in on /history Thanks apmon for the report. --- app/controllers/changeset_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.43.2