-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14294 from transcom/B-21680-INT-add-indexes
B 21680 int add indexes
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
migrations/app/schema/20241127133504_add_indexes_speed_up_counseling_offices.up.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--adding indexes to help speed up counseling_offices dropdown | ||
CREATE INDEX IF NOT EXISTS idx_addresses_postal_code ON addresses(postal_code); | ||
CREATE INDEX IF NOT EXISTS idx_addresses_us_post_region_cities_id ON addresses(us_post_region_cities_id); | ||
CREATE INDEX IF NOT EXISTS idx_addresses_country_id ON addresses(country_id); | ||
CREATE INDEX IF NOT EXISTS idx_duty_locations_provides_services_counseling ON duty_locations(provides_services_counseling); | ||
CREATE INDEX IF NOT EXISTS idx_re_us_post_regions_uspr_zip_id ON re_us_post_regions(uspr_zip_id); | ||
CREATE INDEX IF NOT EXISTS idx_zip3_distances_from_zip3_to_zip3 ON zip3_distances(from_zip3, to_zip3); | ||
CREATE INDEX IF NOT EXISTS idx_zip3_distances_to_zip3_from_zip3 ON zip3_distances(to_zip3, from_zip3); | ||
CREATE INDEX IF NOT EXISTS idx_re_oconus_rate_areas_us_post_region_cities_id ON re_oconus_rate_areas(us_post_region_cities_id); | ||
CREATE INDEX IF NOT EXISTS idx_gbloc_aors_oconus_rate_area_id ON gbloc_aors(oconus_rate_area_id); | ||
CREATE INDEX IF NOT EXISTS idx_gbloc_aors_jppso_regions_id ON gbloc_aors(jppso_regions_id); | ||
CREATE INDEX IF NOT EXISTS idx_transportation_offices_provides_ppm_closeout ON transportation_offices(provides_ppm_closeout); |