[Lada-commits] [PATCH 2 of 2] Add spatial index to speed up OrtFactory.findVerwaltungseinheit()
Wald Commits
scm-commit at wald.intevation.org
Mon Dec 5 12:44:55 CET 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1480937339 -3600
# Node ID df75a467d55a8385404f80c32f9f0fad733d9afc
# Parent 9dda1237c756a8247cac53764b4c2f22d6284674
Add spatial index to speed up OrtFactory.findVerwaltungseinheit().
diff -r 9dda1237c756 -r df75a467d55a db_schema/stammdaten_schema.sql
--- a/db_schema/stammdaten_schema.sql Mon Dec 05 12:20:10 2016 +0100
+++ b/db_schema/stammdaten_schema.sql Mon Dec 05 12:28:59 2016 +0100
@@ -169,6 +169,7 @@
gem_id character varying(8) NOT NULL REFERENCES verwaltungseinheit,
shape public.geometry(MultiPolygon, 4326)
);
+CREATE INDEX verwaltungsgrenze_sp_idx ON verwaltungsgrenze USING gist (shape);
CREATE TABLE netz_betreiber (
id character varying(2) PRIMARY KEY,
More information about the Lada-commits
mailing list