Add in the Element Hierarchy table information to determine the primary reference of a copied reference element
When an element is copied as reference (parent-child) elsewhere in the tree it then has multiple parents. One of it is the primary parent. This information needs to be added to the hierarchy tables.
Martin Peter commented
The information about primary path will be available in the ElementHierarchy as well as Element table of the new Real-Time Query Processing Engine. The beta release should be available end of this month, the final release should be part AF 2018 release.