-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TylerMatteo
approved these changes
Feb 7, 2024
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.