title: influxdb CLI import failed inserts when using a huge file
body: <p>I am currently working on NASDAQ data parsing and insertion into the influx database. I have taken care of all the data insertion rules (escaping special characters and organizing the according to the format : <code>&lt;measurement&gt;[,&lt;tag-key&gt;=&lt;tag-value&gt;...] &lt;field-key&gt;=&lt;field-value&gt;[,&lt;field2-key&gt;=&lt;field2-value&gt;...] [unix-nano-timestamp]</code>).</p>
  
  <p>Below is a sample of my data:
  <code>apatel17@*****:~/output$ head S051018-v50-U.csv</code>
  <code># DDL</code>
  <code>CREATE DATABASE NASDAQData</code>
  <code># DML</code>
  <code># CONTEXT-DATABASE:NASDAQData</code>
  <code>U,StockLoc=6445,OrigOrderRef=22159,NewOrderRef=46667 TrackingNum=0,Shares=200,Price=73.7000 1525942800343419608</code>
  <code>U,StockLoc=6445,OrigOrderRef=20491,NewOrderRef=46671 TrackingNum=0,Shares=200,Price=73.7800 1525942800344047668</code>
  <code>U,StockLoc=952,OrigOrderRef=65253,NewOrderRef=75009 TrackingNum=0,Shares=400,Price=45.8200 1525942800792553625</code>
  <code>U,StockLoc=7092,OrigOrderRef=51344,NewOrderRef=80292 TrackingNum=0,Shares=100,Price=38.2500 1525942803130310652</code>
  <code>U,StockLoc=7092,OrigOrderRef=80292,NewOrderRef=80300 TrackingNum=0,Shares=100,Price=38.1600 1525942803130395217</code>
  <code>U,StockLoc=7092,OrigOrderRef=82000,NewOrderRef=82004 TrackingNum=0,Shares=300,Price=37.1900 1525942803232492698</code></p>
  
  <p>I have also created the database: <code>NASDAQData</code> inside influx.</p>
  
  <p>The problem I am facing is this:
  The file has approximately 13 million rows (12,861,906 to be exact). I am trying to insert this data using the CLI import command as below:
  <code>influx -import -path=S051118-v50-U.csv -precision=ns -database=NASDAQData</code></p>
  
  <p>I usually get upto 5,000,000 lines before I start getting the error for insertion. I have run this code multiple times and sometimes I get the error at 3,000,000 lines as well. To figure out this error, I am running the same code on a part of the file. I divide the data into 500,000 lines each and the code successfully ran for all the smaller files. (all 26 files of 500,000 rows)</p>
  
  <p>Has this happened to somebody else or does somebody know a fix for this problem wherein a huge file shows errors during data insert but if broken down and worked with smaller data size, the import works perfectly.</p>
  
  <p>Any help is appreciated. Thanks</p>