 <p>You can import contacts by chunks and validate every record before saving it. Take a look at <a href="https://github.com/tilo/smarter_csv" rel="nofollow">smarter_csv</a> which allow chunk and parallel processing of CSV files.</p>