Home / Blog / Two Georgias: qvevri on one, muscadine on the other

July 14, 2026Β· Wine World Map

Two Georgias: qvevri on one, muscadine on the other

Type "georgia" into the search box. You get two clusters of results: Kakheti, Kartli, Imereti β€” the ancient wine-growing regions of the country of Georgia, where qvevri fermentation has been documented for about 8,000 years. And a scatter of wineries around Dahlonega and Tiger, Georgia, USA, mostly working with muscadine, hybrids, and some vinifera at altitude. Same string, two wildly different wine cultures, and every part of the data model has to decide which one you meant.

Why the collision is worse than it looks

At first glance it's a country-vs-state problem and the schema handles it fine. Georgia the country lives in countries with iso2 = 'GE'. Georgia the US state doesn't live in countries at all β€” its wineries have country_id pointing at the United States row, and their region is a row in regions called "Georgia" whose parent is US. Different tables, no primary-key clash.

The trouble starts at the URL layer. Every country and every region gets a slug. The country slug is georgia. The region slug β€” before we noticed β€” was also georgia. Fine, they live at different paths (/countries/georgia vs /regions/georgia), but internally the dedup pipeline uses normalized names as a soft key across tables when reconciling OSM imports, and it started attaching wineries from the North Georgia AVA to a country called Georgia halfway across the world.

-- The query that produced ChΓ’teau Meiskhi in Dahlonega
SELECT w.id, w.name, r.name AS region, c.name AS country
FROM wineries w
JOIN regions r ON r.id = w.region_id
JOIN countries c ON c.id = r.country_id
WHERE lower(r.name) = 'georgia'
  AND c.iso2 = 'GE';
-- returned 11 rows that had no business being in Kakheti

The fix is a compound key, not a rename

The obvious move is to rename the state slug to georgia-us and be done. We did that for URLs. But the dedup step needed something stronger, because OSM's addr:state=Georgia tag doesn't come with a country attached in the same query β€” you have to look it up from the node's coordinates.

So every place-name normalization now carries a country code prefix internally:

function placeKey(name: string, iso2: string): string {
  return `${iso2}:${slugify(name)}`
}

// 'GE:georgia'  β€” the country
// 'US:georgia'  β€” the state
// 'GE:kakheti'  β€” the region inside the country

The iso2 comes from a reverse geocode on the winery's coordinates before any name-matching happens. That's the seam β€” coordinates first, names second. Names lie; coordinates don't (much).

What the map actually shows

| Query | Suggests first | Then | |---|---|---| | georgia | Georgia (country) | Georgia (US state), Georgian wine, Georgian grapes | | georgian | Georgian grapes (Saperavi, Rkatsiteli) | Georgia (country) | | georgia usa | Georgia (US state) | β€” | | kakheti | Kakheti (region) | β€” | | saperavi | Saperavi (grape) | wineries growing it |

The autocomplete prioritizes the country because it's the more famous wine origin globally, and because typing plain "georgia" from most of the world's IPs is more likely to mean the country. US users get a small nudge from IP-based locale hints, but not a full reordering β€” the ranking difference is one position, not five. We're not going to hide 8,000 years of continuous winemaking behind a state that entered commercial viticulture in the 1980s.

Saperavi is the tell

If you're not sure whether a winery is Georgian-Georgian or Georgia-USA-Georgian, look at the grape list. Saperavi and Rkatsiteli mean Kakheti with near certainty. Chambourcin and muscadine mean the American South. Some North Georgia wineries do grow Saperavi (it handles cold winters well and there's a small but real Eastern European diaspora influence), so the heuristic isn't perfect, but combined with coordinates it's decisive. And since grapes don't have a table of their own β€” they're a comma-separated field on the winery row β€” this check is a cheap LIKE against a text column, not a join.

Lesson

Two things called the same thing at different scales β€” a country and a subdivision of a different country β€” will collide anywhere your system uses a name as a key. The answer isn't to rename one of them; it's to acknowledge that human place names were never meant to be unique identifiers and always carry a scope with them. In this codebase the scope is the ISO country code. In your codebase it's probably something else. But the moment you write WHERE name = ? against a places table without a scope, you've quietly asked the database to lie to you.

#disambiguation#search#schema