Generate multiple parallelizable SQL files (#839)

Generate multiple SQL files to be imported in parallel.
The files will respect the cross-layer dependencies,
so they can be all ingested at the same time.
This commit is contained in:
Yuri Astrakhan
2020-05-18 14:26:51 -04:00
committed by GitHub
parent d8095e8ee9
commit e12f09ae57
3 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ help:
.PHONY: init-dirs
init-dirs:
@mkdir -p build
@mkdir -p build/sql
@mkdir -p data
@mkdir -p cache
@@ -101,7 +101,7 @@ build/mapping.yaml: init-dirs
.PHONY: build-sql
build-sql: init-dirs
$(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools generate-sql openmaptiles.yaml > build/tileset.sql
$(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools generate-sql openmaptiles.yaml --dir ./build/sql
.PHONY: clean
clean: