Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add index on geoid column for ACS db tables #261

Merged
merged 3 commits into from
Feb 7, 2024
Merged

Conversation

bmarchena
Copy link
Contributor

This PR attempts to resolve #254 and add index to the ACS schema database tables on the geoid column.

The migration script currently fails due to a syntax error when naming the index using the TABLE_NAME host variable.

@bmarchena bmarchena requested a review from a team as a code owner February 2, 2024 22:15
@bmarchena bmarchena merged commit 40e8c8a into develop Feb 7, 2024
1 check passed
@bmarchena bmarchena deleted the add-geoid-indexes branch February 8, 2024 15:14
pratishta pushed a commit that referenced this pull request Feb 14, 2024
* Add index on geoid column for ACS db tables

* Add INDEX_NAME var to etl script and update acs.sql to use it to create geoid index

* Update decennial.sql to use INDEX_NAME variable to create geoid index

---------

Co-authored-by: Tyler Matteo <[email protected]>
TylerMatteo added a commit that referenced this pull request Mar 11, 2024
* point to archive digital ocean space

* Fix for AB#14700, invalid selection type will no
cause server api

* use node v18.17.1 for ci

* point to versioned digital ocean space

* only specify major version of database

* expose port 5433

* use 5432 within docker network

* point to archive digital ocean space

* update postgres to 15

* build from spaces version folders

* point to 2023-08-21 decennial data

* update table variables that changed

* Decennial data version with:
- No space at end of male var
- 2020 var metadata
- ccd prefix in geoid

* Updated geography version.

* populate support_geoids table with ccds
update selection table to support ccds

* Add CCDs to summary level

* update ci to postgres:15 and node 18

* update ci to run ubuntu 22

* add special variable configurations

* Revert "use 5432 within docker network" and
"expose port 5433"

This reverts commits b8a66f1 and
479fc95

* remove CCDs from support geoids table migration

* fix agdpdrt and popacre calculations

* support decennial variable names for mdage bins

* remove CCDs from support geoids table migration
(reapplication of change)

* use data version with two decimal landacre precision

* use regex match in median error calculation

* Add index on geoid column for ACS db tables (#261)

* Add index on geoid column for ACS db tables

* Add INDEX_NAME var to etl script and update acs.sql to use it to create geoid index

* Update decennial.sql to use INDEX_NAME variable to create geoid index

---------

Co-authored-by: Tyler Matteo <[email protected]>

* Issue/16067 PFF Updates (#272)

* Population FactFinder 2018-2022 ACS & 2020 DDHC-A Updates

* Issue 268 update constants

* Issue 256 Update top and bottom thresholds

* issue 274 update constants for data migration

* Update to working version folders for acs and decennial csvs

* Closes #1147
 - updated decennial metadata script to reflect domain change from decennial to census
 - added semicolons in constants js

* updated constants with new dates

---------

Co-authored-by: pratishta <[email protected]>

---------

Co-authored-by: tangoyankee <[email protected]>
Co-authored-by: dhochbaum-dcp <[email protected]>
Co-authored-by: Bryan <[email protected]>
Co-authored-by: Horatio <[email protected]>
Co-authored-by: pratishta <[email protected]>
TylerMatteo added a commit that referenced this pull request Mar 15, 2024
* point to archive digital ocean space

* Fix for AB#14700, invalid selection type will no
cause server api

* use node v18.17.1 for ci

* point to versioned digital ocean space

* only specify major version of database

* expose port 5433

* use 5432 within docker network

* point to archive digital ocean space

* update postgres to 15

* build from spaces version folders

* point to 2023-08-21 decennial data

* update table variables that changed

* Decennial data version with:
- No space at end of male var
- 2020 var metadata
- ccd prefix in geoid

* Updated geography version.

* populate support_geoids table with ccds
update selection table to support ccds

* Add CCDs to summary level

* update ci to postgres:15 and node 18

* update ci to run ubuntu 22

* add special variable configurations

* Revert "use 5432 within docker network" and
"expose port 5433"

This reverts commits b8a66f1 and
479fc95

* remove CCDs from support geoids table migration

* fix agdpdrt and popacre calculations

* support decennial variable names for mdage bins

* remove CCDs from support geoids table migration
(reapplication of change)

* use data version with two decimal landacre precision

* use regex match in median error calculation

* Add index on geoid column for ACS db tables (#261)

* Add index on geoid column for ACS db tables

* Add INDEX_NAME var to etl script and update acs.sql to use it to create geoid index

* Update decennial.sql to use INDEX_NAME variable to create geoid index

---------

Co-authored-by: Tyler Matteo <[email protected]>

* Issue/16067 PFF Updates (#272)

* Population FactFinder 2018-2022 ACS & 2020 DDHC-A Updates

* Issue 268 update constants

* Issue 256 Update top and bottom thresholds

* issue 274 update constants for data migration

* Update to working version folders for acs and decennial csvs

* Closes #1147
 - updated decennial metadata script to reflect domain change from decennial to census
 - added semicolons in constants js

* updated constants with new dates

---------

Co-authored-by: pratishta <[email protected]>

* 279 updated constants

---------

Co-authored-by: tangoyankee <[email protected]>
Co-authored-by: dhochbaum-dcp <[email protected]>
Co-authored-by: Bryan <[email protected]>
Co-authored-by: Tyler Matteo <[email protected]>
Co-authored-by: pratishta <[email protected]>
TylerMatteo added a commit that referenced this pull request Mar 21, 2024
* point to archive digital ocean space

* Fix for AB#14700, invalid selection type will no
cause server api

* use node v18.17.1 for ci

* point to versioned digital ocean space

* only specify major version of database

* expose port 5433

* use 5432 within docker network

* point to archive digital ocean space

* update postgres to 15

* build from spaces version folders

* point to 2023-08-21 decennial data

* update table variables that changed

* Decennial data version with:
- No space at end of male var
- 2020 var metadata
- ccd prefix in geoid

* Updated geography version.

* populate support_geoids table with ccds
update selection table to support ccds

* Add CCDs to summary level

* update ci to postgres:15 and node 18

* update ci to run ubuntu 22

* add special variable configurations

* Revert "use 5432 within docker network" and
"expose port 5433"

This reverts commits b8a66f1 and
479fc95

* remove CCDs from support geoids table migration

* fix agdpdrt and popacre calculations

* support decennial variable names for mdage bins

* remove CCDs from support geoids table migration
(reapplication of change)

* use data version with two decimal landacre precision

* use regex match in median error calculation

* Add index on geoid column for ACS db tables (#261)

* Add index on geoid column for ACS db tables

* Add INDEX_NAME var to etl script and update acs.sql to use it to create geoid index

* Update decennial.sql to use INDEX_NAME variable to create geoid index

---------

Co-authored-by: Tyler Matteo <[email protected]>

* Issue/16067 PFF Updates (#272)

* Population FactFinder 2018-2022 ACS & 2020 DDHC-A Updates

* Issue 268 update constants

* Issue 256 Update top and bottom thresholds

* issue 274 update constants for data migration

* Update to working version folders for acs and decennial csvs

* Closes #1147
 - updated decennial metadata script to reflect domain change from decennial to census
 - added semicolons in constants js

* updated constants with new dates

---------

Co-authored-by: pratishta <[email protected]>

* 279 updated constants

* issue 284 updated constants to pull new data (#286)

---------

Co-authored-by: tangoyankee <[email protected]>
Co-authored-by: dhochbaum-dcp <[email protected]>
Co-authored-by: Bryan <[email protected]>
Co-authored-by: Horatio <[email protected]>
Co-authored-by: pratishta <[email protected]>
Co-authored-by: horatio <[email protected]>
TylerMatteo added a commit that referenced this pull request Aug 27, 2024
* point to archive digital ocean space

* Fix for AB#14700, invalid selection type will no
cause server api

* use node v18.17.1 for ci

* point to versioned digital ocean space

* only specify major version of database

* expose port 5433

* use 5432 within docker network

* point to archive digital ocean space

* update postgres to 15

* build from spaces version folders

* point to 2023-08-21 decennial data

* update table variables that changed

* Decennial data version with:
- No space at end of male var
- 2020 var metadata
- ccd prefix in geoid

* Updated geography version.

* populate support_geoids table with ccds
update selection table to support ccds

* Add CCDs to summary level

* update ci to postgres:15 and node 18

* update ci to run ubuntu 22

* add special variable configurations

* Revert "use 5432 within docker network" and
"expose port 5433"

This reverts commits b8a66f1 and
479fc95

* remove CCDs from support geoids table migration

* fix agdpdrt and popacre calculations

* support decennial variable names for mdage bins

* remove CCDs from support geoids table migration
(reapplication of change)

* use data version with two decimal landacre precision

* use regex match in median error calculation

* Add index on geoid column for ACS db tables (#261)

* Add index on geoid column for ACS db tables

* Add INDEX_NAME var to etl script and update acs.sql to use it to create geoid index

* Update decennial.sql to use INDEX_NAME variable to create geoid index

---------

Co-authored-by: Tyler Matteo <[email protected]>

* Issue/16067 PFF Updates (#272)

* Population FactFinder 2018-2022 ACS & 2020 DDHC-A Updates

* Issue 268 update constants

* Issue 256 Update top and bottom thresholds

* issue 274 update constants for data migration

* Update to working version folders for acs and decennial csvs

* Closes #1147
 - updated decennial metadata script to reflect domain change from decennial to census
 - added semicolons in constants js

* updated constants with new dates

---------

Co-authored-by: pratishta <[email protected]>

* 279 updated constants

* issue 284 updated constants to pull new data (#286)

* Search results now include CDTAs

* Update constants

* 307 Update Constants to point to new data from Pop
  - update constants from 2024-04-29 to 2024-07-25

Closes #307

---------

Co-authored-by: tangoyankee <[email protected]>
Co-authored-by: dhochbaum-dcp <[email protected]>
Co-authored-by: Bryan <[email protected]>
Co-authored-by: Tyler Matteo <[email protected]>
Co-authored-by: pratishta <[email protected]>
Co-authored-by: py <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add indices on geoid columns
2 participants