Dropping duplicate GPS points is very expensive and rarely finds

anything much to drop, so don't bother.
This commit is contained in:
Tom Hughes 2007-09-12 13:49:58 +00:00
parent 0423884184
commit c3f0e12491

View file

@ -64,7 +64,7 @@ class ApiController < ApplicationController
end
# get all the points
points = Tracepoint.find_by_area(min_lat, min_lon, max_lat, max_lon, :select => "DISTINCT *", :offset => offset, :limit => TRACEPOINTS_PER_PAGE, :order => "timestamp DESC" )
points = Tracepoint.find_by_area(min_lat, min_lon, max_lat, max_lon, :offset => offset, :limit => TRACEPOINTS_PER_PAGE, :order => "timestamp DESC" )
doc = XML::Document.new
doc.encoding = 'UTF-8'