The MH_Tree table is a lightweight registry of MyHeritage family trees. Each row is one tree, identified by its URL, and serves as the parent record that the individuals in MH_Ancestors hang off of.
| Column | Type | Description |
|---|---|---|
| Id | int (PK) | Auto-incrementing primary key. Referenced by MH_Ancestors.TreeId. |
| treeurl | string | URL of the MyHeritage tree. Unique index; matches MH_Match.tree_url. |
| created_date | string | When the tree record was first created |
| updated_date | string | When the tree record was last updated |
Rows are written by AddMH_Tree at the start of the tree gather stage, keyed on treeurl. If the tree URL already exists the existing Id is returned and reused; otherwise a new row is inserted. That Id is then used as the TreeId for every individual parsed into MH_Ancestors from that tree.
MH_Ancestors.TreeId = MH_Tree.Id.MH_Match.tree_url = MH_Tree.treeurl to connect a match to its tree.