title: Batch insert with Astyanax CQL3 API?
body: <p>I know we can insert single record to Cassandra with something like this (the example below taken from <a href="https://github.com/Netflix/astyanax/wiki/Cql-and-cql3" rel="nofollow noreferrer">here</a>):</p>
  
  <pre><code>final String INSERT_STATEMENT = "INSERT INTO employees (empID, deptID, first_name, last_name) VALUES (?, ?, ?, ?);";
  
  result = keyspace
      .prepareQuery(CQL3_CF)
      .withCql(INSERT_STATEMENT)
      .asPreparedStatement()
      .withIntegerValue(222)
      .withIntegerValue(333)
      .withStringValue("Eric")
      .withStringValue("Cartman")
      .execute();
  </code></pre>
  
  <p>Is it possible to do a batch insert (for multiple records) with Astyanax's cql3 API (like JDBC's executeBatch)?</p>
  
  <p>NOTE: Using Astyanax's MutationBatch (which is based on Thrift, not CQL) doesn't seem to be an option to me, since I'm running in to a problem same as <a href="https://stackoverflow.com/questions/11915007/cant-create-table-with-composite-key-using-astyanax-client">this one</a>.</p>