perfs sur phase_2_trace_pgr

This commit is contained in:
MaelREBOUX 2021-09-25 11:58:52 +02:00
parent e10c84e7ba
commit ec4f4ccd1c
2 changed files with 5 additions and 1 deletions

View file

@ -163,6 +163,10 @@ ORDER BY s.id ;" \
done done
# ménage pour performances
PGPASSWORD=$DB_PASSWD $PSQL -X -h $DB_HOST -p $DB_PORT -U $DB_USER -d $DB_NAME \
-c "VACUUM FULL phase_2_trace_pgr ;V"
echo " Calcul des itinéraires terminé" echo " Calcul des itinéraires terminé"
echo "" echo ""

View file

@ -382,7 +382,7 @@ CREATE TABLE phase_2_trace_pgr
name_fr text, name_fr text,
name_br text, name_br text,
the_geom geometry, the_geom geometry,
--CONSTRAINT phase_2_trace_pkey PRIMARY KEY (secteur_id, path_seq), CONSTRAINT phase_2_trace_pgr_pkey PRIMARY KEY (secteur_id, path_seq, node),
CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text), CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154) CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
); );