This commit is contained in:
andrewxhill
2014-08-06 13:19:57 -04:00

View File

@@ -6,6 +6,10 @@
--- this allows us to use table sort order instead of an explicit ORDER BY rank ---
--- in searches and reduces search cost / time ---
--- ---
-- clear all existing data from the table --
DELETE FROM admin0_synonyms;
-- 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)
@@ -85,4 +89,4 @@ DELETE FROM admin0_synonyms
FROM admin0_synonyms
WHERE name_ = a.name_
AND adm0_a3 = a.adm0_a3
AND rank < a.rank));
AND rank < a.rank));