Skip to content

Astyanax over Java Driver

opuneet edited this page Jan 8, 2014 · 15 revisions

Make sure you read blog post for info on what the integration between Astyanax and Java-Driver is all about.

To summarize the overall post - Java-Driver does some of the heavy lifting like load balancing and connection pooling and also provides some neat features such as cursor support and async requests. The astyanax-cql module implements the Astyanax interface using Java Driver underneath, but this has some caveats.

Below we are stating some of the imp caveats / changes to consider when using this version of Astyanax (i.e astyanax-cql over Java Driver)

How to select the right lib release version.

Start with setting up your keyspace context

Cache the column family definition with your ColumnFamily object

Reads / Queries - how to use PreparedStatements for better performance

Writes / Mutations - how to use PreparedStatements for better performance

Examples

Simple ColumnFamily definition

ColumnFamily with composite columns

Regular flat table style ColumnFamily

Clone this wiki locally