mod of admin0 geocoder to consolidate search function

This commit is contained in:
andrewxhill
2014-08-06 13:19:09 -04:00
parent 3d1de6cd46
commit 58d5c54f34
4 changed files with 18 additions and 27 deletions

View File

@@ -1,5 +1,11 @@
---- ADMIN0_SYNONYMS ---
--- ---
--- NOTE ---
--- insert order should be from lowest rank to highest ---
--- this allows us to use table sort order instead of an explicit ORDER BY rank ---
--- in searches and reduces search cost / time ---
--- ---
-- insert data from ne_admin_0 into admin0_synonyms
-- the name column from ne_10m_countries is assigned a rank of 0
INSERT INTO admin0_synonyms (name, rank, adm0_a3)