Slight performance improvement (a reported 2s) by skipping db query if no bbox is...
authorThomas Wood <grand.edgemaster@gmail.com>
Tue, 21 Apr 2009 18:04:43 +0000 (18:04 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Tue, 21 Apr 2009 18:04:43 +0000 (18:04 +0000)
Thanks apmon for the report.

app/controllers/changeset_controller.rb

index 4913a600e1d036a5c0e41dcdbd35b97764acd32d..243609290e9fc0e8b5379b7ce2a9b9979ac1c926 100644 (file)
@@ -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);