perfs sur phase_2_trace_pgr
This commit is contained in:
parent
e10c84e7ba
commit
ec4f4ccd1c
|
@ -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 ""
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue