Skip to content

Commit

Permalink
chore(pipeline): add indexes on geo data
Browse files Browse the repository at this point in the history
  • Loading branch information
vmttn committed Sep 19, 2024
1 parent 63388b9 commit 81b4357
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pipeline/dbt/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ models:

staging:
+schema: staging
+materialized: view

sources:
+materialized: view

decoupage_administratif:
+materialized: table

intermediate:
+schema: "{{ 'intermediate_tmp' if var('build_intermediate_tmp', false) else 'intermediate' }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ version: 2

models:
- name: stg_decoupage_administratif__regions
config:
indexes:
- columns: [code]
unique: true
columns:
- name: code
data_tests:
Expand All @@ -16,6 +20,11 @@ models:
- dbt_utils.not_empty_string

- name: stg_decoupage_administratif__departements
config:
indexes:
- columns: [code]
unique: true
- columns: [code_region]
columns:
- name: code
data_tests:
Expand All @@ -35,6 +44,10 @@ models:
- dbt_utils.not_empty_string

- name: stg_decoupage_administratif__epcis
config:
indexes:
- columns: [code]
unique: true
columns:
- name: code
data_tests:
Expand All @@ -49,6 +62,13 @@ models:
- dbt_utils.not_empty_string

- name: stg_decoupage_administratif__communes
config:
indexes:
- columns: [code]
unique: true
- columns: [code_departement]
- columns: [code_region]
- columns: [code_epci]
columns:
- name: code
data_tests:
Expand Down

0 comments on commit 81b4357

Please sign in to comment.