HelpDatabase Reference › MH_Ancestors

MH_Ancestors Table

The MH_Ancestors table stores the individual people found in MyHeritage family trees. Each row is one person in a tree, with their name, life dates, parents, and a link back to the match the tree was gathered for.

Gathering status: MyHeritage gathering is currently unavailable in the Client and is expected to return in a future update. This page documents the schema as it exists for data already in your database.

Column Reference

ColumnTypeDescription
Idint (PK)Auto-incrementing primary key
TreeIdintThe MH_Tree.Id of the tree this person belongs to. Indexed.
matchidstringThe MyHeritage member ID this individual is associated with. Indexed; ties tree people back to a match.
surnamestringLast name
givenstringFirst/given name
birthdatestringBirth date
deathdatestringDeath date
birthplacestringBirth place. Not populated by the current gather code; stored as an empty string.
deathplacestringDeath place. Not populated by the current gather code; stored as an empty string.
relidstringAhnentafel/relationship number within the tree. Not populated by the current gather code; stored as an empty string.
personIdstringThis person’s unique ID within the tree
fatherIdstringpersonId of this person’s father within the same tree
motherIdstringpersonId of this person’s mother within the same tree
genderstringThis person’s gender
dnaLinkstringLink to this person’s DNA matches, when the tree exposes one
Tree structure: the tree is reconstructed from personId, fatherId, and motherId — a person’s parents are the rows whose personId equals this row’s fatherId and motherId within the same TreeId.

How It’s Populated

Rows are written by AddMH_Ancestors during the tree gather stage. After AddMH_Tree registers the tree and returns its Id, each person in the tree’s person list is stored with that TreeId, name, dates, parent IDs, gender, member ID (matchid), and DNA link. Inserts are de-duplicated on the combination of TreeId and personId. The birthplace, deathplace, and relid columns are set to empty strings by the current code.

Related Tables

  • MH_Tree — the parent tree, linked by TreeId = MH_Tree.Id.
  • MH_Match — joined through MH_Tree (and via matchid) to connect tree individuals to a DNA match.