Browse files

added indexing to osm imports

  • Loading branch information...
1 parent c7bb7f3 commit 267ff12d8a1f961ee0ecc8b474efb682e6e8d133 @andrewxhill andrewxhill committed Jul 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/importer/lib/cartodb-importer/loaders/osm.rb
View
2 lib/importer/lib/cartodb-importer/loaders/osm.rb
@@ -88,6 +88,8 @@ def process!
if feature == "polygon"
@db_connection.run("UPDATE #{@table_name} SET the_geom = ST_Multi(the_geom) WHERE geometrytype(the_geom) != '#{type_conversions[feature]}' ;")
end
+
+ add_index @table_name,"importing_#{Time.now.to_i}_#{@table_name}"
end
begin

0 comments on commit 267ff12

Please sign in to comment.