updating PostgreSQL/Postgis table You can proceed for all the tables which have Geometry collumns.
A script named 'createGISTIndex.sql' is provided in the 'SQL' dir in the Gisgraphy distribution to create all the GIST indexes for all the tables and this can be a good exemple.
- usage : psql -UYOURUSER -h 127.0.0.1 -d gisgraphy -f /path/to/file/createGISTIndex.sql \connect gisgraphy \echo will create all the index needed by gisgraphy to improve performance,
\this make take a while depends on how many data are in database \echo will create Geonames Index CREATE INDEX locationIndexAdm ON adm USING GIST (location); CREATE INDEX locationIndexAirport ON airport USING GIST (location); CREATE INDEX locationIndexAmusePark ON amusePark USING GIST (location); CREATE INDEX locationIndexAqueduc ON quay USING GIST (location);
..
..
VACUUM FULL ANALYZE;
Aucun commentaire:
Enregistrer un commentaire