incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DuyHai Doan <doanduy...@gmail.com>
Subject Re: Buffering for lots of INSERT or UPDATE calls with DataStax Java driver?
Date Sat, 08 Feb 2014 21:24:44 GMT
"Is there a recommended way to perform lots of INSERT operations in a row
when using the DataStax Java driver?"  --> Yes, use UNLOGGED batches. More
info here:
http://www.datastax.com/documentation/cql/3.0/webhelp/index.html#cql/cql_reference/batch_r.html


On Sat, Feb 8, 2014 at 10:19 PM, Clint Kelly <clint.kelly@gmail.com> wrote:

> Folks,
>
> Is there a recommended way to perform lots of INSERT operations in a
> row when using the DataStax Java driver?
>
> I notice that the RecordWriter for the CQL3 Hadoop implementation in
> Cassandra does some per-data-node buffering of CQL3 queries.  The
> DataStax Java driver, on the other hand, supports asynchronous query
> execution.
>
> In a situation in which we are doing lots of and lots of writes (like
> a RecordWriter for Hadoop), do we need to do any buffering or can we
> just fire away session.executeAsync(...) calls as soon as they are
> ready?
>
> Thanks!
>
> Best regards,
> Clint
>

Mime
View raw message