[GRASS-SVN] r60370 - grass-addons/grass6/raster/r.out.mbtiles
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 20 02:28:17 PDT 2014
Author: hamish
Date: 2014-05-20 02:28:17 -0700 (Tue, 20 May 2014)
New Revision: 60370
Modified:
grass-addons/grass6/raster/r.out.mbtiles/r.out.mbtiles
Log:
analyze db after building index, not sure if it needs vacuuming when fresh and new though
Modified: grass-addons/grass6/raster/r.out.mbtiles/r.out.mbtiles
===================================================================
--- grass-addons/grass6/raster/r.out.mbtiles/r.out.mbtiles 2014-05-20 08:52:18 UTC (rev 60369)
+++ grass-addons/grass6/raster/r.out.mbtiles/r.out.mbtiles 2014-05-20 09:28:17 UTC (rev 60370)
@@ -536,8 +536,11 @@
cat << EOF >> "$TMPFILE.sql"
COMMIT TRANSACTION;
CREATE UNIQUE INDEX tiles_index ON tiles (zoom_level, tile_column, tile_row);
+ANALYZE;
EOF
+# ? VACUUM;
+
if [ `wc -l < "$TMPFILE.sql"` -gt 65535 ] ; then
echo "FIXME: insert some 'COMMIT TRANSACTION; BEGIN TRANSACTION;' inline the sql every 65535 inserts or so"
fi
More information about the grass-commit
mailing list