Skip to content

Commit

Permalink
adds more useful indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfens committed Feb 27, 2022
1 parent 4d220ae commit a618d80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
USE geonames;

CREATE INDEX idx_geoname_id
ON alternateNames(geonameid);
ON alternateNames(geonameid, isPreferredName);

CREATE INDEX idx_isolanguage
ON alternateNames(isoLanguage);
Expand Down Expand Up @@ -60,8 +60,8 @@ CREATE INDEX idx_admin2
CREATE INDEX idx_latitude_longitude
ON geoName(latitude, longitude);

CREATE INDEX idx_hierarchy
ON hierarchy(parentId, childId);
CREATE UNIQUE INDEX ux_hierarchy
ON hierarchy(type, childId, parentId);

CREATE INDEX idx_iso639_2
ON isoLanguages(iso639_2);
Expand Down

0 comments on commit a618d80

Please sign in to comment.