Skip to content

Commit

Permalink
Add index on parcelle voie - SUBSTR(voie,0,7)||SUBSTR(voie,12,4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdouchin committed Jul 31, 2024
1 parent c28dd67 commit e97db25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cadastre/scripts/plugin/edigeo_create_indexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
1 change: 1 addition & 0 deletions cadastre/scripts/plugin/edigeo_drop_indexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
1 change: 1 addition & 0 deletions cadastre/scripts/plugin/majic3_drop_indexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit e97db25

Please sign in to comment.