Partition rows when setting relations.