SVY-7664 Related records are wrongfully deleted when having a duplicate
index