PHOENIX-852 Optimize child/parent foreign key joins