Inserting Map into Cassandra CQL3 column family by using Astyanax mutation batch - codedisqus.com
I am trying to insert a bunch of data into it using Astyanax.
The version of Cassandra that I am working with is 1.2, so I can't use BATCH insert.
I know that I can run CQL3 commands in a for loop using Prepared Statements.
I wanted to know if it's possible to use Astyanax mutation batch to insert the data into the above column family? I realize that this will make use of the Astyanax Thrift interface to insert into a CQL3 column family but for the sake of performant writes, is this a viable option?
I took a look at the structure of the column family in cassandra-cli and it looks something like this
Read full article from Inserting Map into Cassandra CQL3 column family by using Astyanax mutation batch - codedisqus.com
No comments:
Post a Comment