OpenDRR / opendrr-api

REST API for OpenDRR data / API REST pour les données OpenDRR
MIT License
4 stars 7 forks source link

[Meta-issue] Optimize pipeline (python/add_data.sh etc.) #76

Open anthonyfok opened 3 years ago

anthonyfok commented 3 years ago

Goals include:

Future tasks (that have yet to be turned into GitHub issues):

Maybe in Round 2 of refactoring? Or this round? Need to discuss with Drew first:

Random ideas, questions, etc.

anthonyfok commented 3 years ago

[Edited] See https://github.com/OpenDRR/opendrr-api/pull/88#issuecomment-828615173 for a more complete benchmark (March 19 vs April 27)

Benchmark (in progress, to be edited)

Before:

Duration Command
2s git clone https://github.com/OpenDRR/model-factory.git --depth 1
4m58s [Download] git clone https://github.com/OpenDRR/boundaries.git --depth 1
3m08 [Import] ogr2ogr run on the 9 .gpkg files from git clone of OpenDRR/boundaries
... ...

After:

Duration Command
2s git clone https://github.com/OpenDRR/model-factory.git --depth 1
43s to 1m20s wget https://opendrr.eccp.ca/file/OpenDRR/opendrr-boundaries.dump
... ...