Make id field unique and add index on points.