diff --git a/cadastre/scripts/plugin/edigeo_create_indexes.sql b/cadastre/scripts/plugin/edigeo_create_indexes.sql index 99150506..25dfb39f 100644 --- a/cadastre/scripts/plugin/edigeo_create_indexes.sql +++ b/cadastre/scripts/plugin/edigeo_create_indexes.sql @@ -69,5 +69,7 @@ DROP INDEX IF EXISTS idx_pevtaxation_pev; CREATE INDEX idx_pevtaxation_pev ON pevtaxation (pev); DROP INDEX IF EXISTS idx_parcelle_voie; CREATE INDEX idx_parcelle_voie ON parcelle (voie); +DROP INDEX IF EXISTS idx_parcelle_voie_substr; +CREATE INDEX idx_parcelle_voie_substr ON parcelle (SUBSTR(voie,0,7)||SUBSTR(voie,12,4)); DROP INDEX IF EXISTS idx_parcelle_comptecommunal; CREATE INDEX idx_parcelle_comptecommunal ON parcelle (comptecommunal); diff --git a/cadastre/scripts/plugin/edigeo_drop_indexes.sql b/cadastre/scripts/plugin/edigeo_drop_indexes.sql index 6ca751be..3f397238 100644 --- a/cadastre/scripts/plugin/edigeo_drop_indexes.sql +++ b/cadastre/scripts/plugin/edigeo_drop_indexes.sql @@ -119,5 +119,6 @@ DROP INDEX IF EXISTS idx_local10_comptecommunal; DROP INDEX IF EXISTS idx_pevexoneration_pev; DROP INDEX IF EXISTS idx_pevtaxation_pev; DROP INDEX IF EXISTS idx_parcelle_voie; +DROP INDEX IF EXISTS idx_parcelle_voie_substr; DROP INDEX IF EXISTS idx_parcelle_comptecommunal; DROP INDEX IF EXISTS idx_geo_unite_fonciere_id; diff --git a/cadastre/scripts/plugin/majic3_drop_indexes.sql b/cadastre/scripts/plugin/majic3_drop_indexes.sql index e312e673..9ca95e38 100644 --- a/cadastre/scripts/plugin/majic3_drop_indexes.sql +++ b/cadastre/scripts/plugin/majic3_drop_indexes.sql @@ -39,6 +39,7 @@ DROP INDEX IF EXISTS idx_pevexoneration_imposable_pev; DROP INDEX IF EXISTS idx_pevexoneration_imposee_pev; DROP INDEX IF EXISTS idx_pevtaxation_pev; DROP INDEX IF EXISTS idx_parcelle_voie; +DROP INDEX IF EXISTS idx_parcelle_voie_substr; DROP INDEX IF EXISTS idx_parcelle_comptecommunal; DROP INDEX IF EXISTS parcelle_info_locaux_pk;