title: Writing big number of entries in Cassandra db
body: <p>We have a temp table that stores a "big" number of records. Every record is a list of random integers that are generated "offline". </p>
  
  <p>So in my pseudocode</p>
  
  <pre><code>typedef std::map&lt;int, vector&lt;int&gt;&gt; myMap; //datastructure
  myMap rows = initialize(); //
  </code></pre>
  
  <p>the rows variable contains something like this:</p>
  
  <pre><code>1, &lt;1,2,3,100,13&gt; //random numbers
  2, &lt;4,5,2,123,33&gt; //random numbers
  3, &lt;43,45,22,9,45&gt; //random numbers
     ...
  </code></pre>
  
  <p>This list has 10 million entries. </p>
  
  <p>My question: what is the best way to flush these data to my cassandra db? I have created a table in order to store the "rows" variable there. I guess that it is not optimal way to save these data to db without risking the integrity of the data?</p>