Skip to content

Commit

Permalink
Import - Amélioration des performances pour l'EDIGEO
Browse files Browse the repository at this point in the history
Ré-application de PG_USE_COPY pour l'import des données via ogr2ogr
en basculant l'option sur `--config`

Cela corrige une régression importante sur les performances d'import
pour des gros volumes de données
  • Loading branch information
mdouchin committed Oct 17, 2023
1 parent 2439068 commit 73e6ea3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Import - Amélioration des performances pour l'EDIGEO
L'import des données EDIGEO via ogr2ogr n'utilisait plus l'option `PG_USE_COPY`

## 1.18.1 - 2023-09-27

* Corrections SQL
Expand Down
3 changes: 2 additions & 1 deletion cadastre/cadastre_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,8 @@ def importEdigeoThfToDatabase(self, filename):
'-lco', 'PG_USE_COPY=YES',
'-nlt', 'GEOMETRY',
'-gt', '50000',
'--config', 'OGR_EDIGEO_CREATE_LABEL_LAYERS', 'NO'
'--config', 'OGR_EDIGEO_CREATE_LABEL_LAYERS', 'NO',
'--config', 'PG_USE_COPY', 'YES',
]
# -c client_encoding=latin1

Expand Down

0 comments on commit 73e6ea3

Please sign in to comment.