use index in data migration