From 6fd72d451828347a75dc65ce56b5e43e81071ae9 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 8 Jul 2015 12:25:09 -0700 Subject: [PATCH] Remove vacuum step, which doesn't seem to make .mbtiles smaller in practice yet takes time and temporary disk space to perform --- mbtiles.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mbtiles.c b/mbtiles.c index 406c4b7..008170d 100644 --- a/mbtiles.c +++ b/mbtiles.c @@ -231,10 +231,6 @@ void mbtiles_close(sqlite3 *outdb, char **argv) { fprintf(stderr, "%s: ANALYZE failed: %s\n", argv[0], err); exit(EXIT_FAILURE); } - if (sqlite3_exec(outdb, "VACUUM;", NULL, NULL, &err) != SQLITE_OK) { - fprintf(stderr, "%s: VACUUM failed: %s\n", argv[0], err); - exit(EXIT_FAILURE); - } if (sqlite3_close(outdb) != SQLITE_OK) { fprintf(stderr, "%s: could not close database: %s\n", argv[0], sqlite3_errmsg(outdb)); exit(EXIT_FAILURE);