Skip to content

Instantly share code, notes, and snippets.

@ranchodeluxe
Created July 13, 2012 17:23
Show Gist options
  • Save ranchodeluxe/3106112 to your computer and use it in GitHub Desktop.
Save ranchodeluxe/3106112 to your computer and use it in GitHub Desktop.
dbh->do("update shapefile set x_min = ?, x_max = ?, y_min = ?, y_max = ? where shapefile_id = ?", undef, $xmin, $xmax, $ymin, $ymax, $shapefile_id);
+ dbh->do("CLUSTER shapefile_".$shapefile_id."_pkey ON shapefile_".$shapefile_id);
+
dbh->do("analyze shapefile_".$shapefile_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment