Which Hierarchical model should I use? Adjacency, Nested, or Enumerated?
问题 I have a table which contains a location of all geographical locations in the world and their relationships. Here is a example that shows the hierarchy. You will see that the data is actually stored as all three Enumerated Path Adjacency list Nested Set The data obviously never changes either. Below is an example of direct ancestors of the location Brighton in England which has a woeid of 13911. Table: geoplanet_places (Has 5.6million rows) Large Image: http://tinyurl.com/68q4ndx I then have