migration with an index to speed things up