Skip to content

Commit

Permalink
Bano v3 dev (#381)
Browse files Browse the repository at this point in the history
* index sur bano_id

* logging de l'import BAN
  • Loading branch information
vdct authored Feb 4, 2024
1 parent f9c116e commit d364126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bano/sources/ban.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def import_to_pg(departement, **kwargs):
except psycopg2.DataError as e:
print(f"Erreur au chargement de la BAN {departement}")
print(e)
b.batch_stop_log(id_batch, False)
return False


Expand Down
1 change: 1 addition & 0 deletions bano/sql/create_table_base_bano_cibles.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ CREATE INDEX IF NOT EXISTS gidx_bano_adresses_3857 ON bano_adresses USING GIST(g
CREATE INDEX IF NOT EXISTS idx_bano_adresses_code_insee ON bano_adresses (code_insee);
CREATE INDEX IF NOT EXISTS idx_bano_adresses_code_dept ON bano_adresses (code_dept);
CREATE INDEX IF NOT EXISTS idx_bano_adresses_fantoir ON bano_adresses (fantoir);
CREATE INDEX IF NOT EXISTS idx_bano_adresses_bano_id ON bano_adresses (bano_id);
CREATE INDEX IF NOT EXISTS idx_bano_adresses_pifo_code_insee_source ON bano_adresses (code_insee,source);

CREATE TABLE IF NOT EXISTS bano_points_nommes (
Expand Down

0 comments on commit d364126

Please sign in to comment.