change index on main table to be on only prefix for now, since that's what we query on. rename  index on temp table.