Tag Archives | cassandra

Cassandra-CQL 1.1.0

It’s been a while since the last release of the cassandra-cql gem, and this version fixes a few long-standing encoding and data-access bugs as well as support for CQL3. The driver now also uses Travis for continuous integration.

Continue Reading →

Bookmark and Share
Read full story · Comments { 0 }

The Cassandra Data Model – Another Gratuitous Introduction

I recently had a conversation in #cassandra about the Data Model that I thought might be useful to try to distill into a few lines. These few lines ignore all of the implementation details to make it work in practice but it gives you the starting point. It looks a little something like this …

Continue Reading →

Bookmark and Share
Read full story · Comments { 0 }

Cassandra-cql ruby gem for Cassandra 1.0

Cassandra-cql has been updated for the latest version of cassandra. It supports all of the datatypes and has proper encoding support for ruby 1.9. It is also now published as a gem so a simple ‘gem install cassandra-cql’ should get you ready to roll with Ruby and Cassandra.

The official location for the code is now Google Code but I also use the Cassandra-CQL github repo if you want to participate that way. For a quick introduction on usage, check out the Google Code Wiki.

Enjoy!

Bookmark and Share
Read full story · Comments { 0 }

Cassandra-CQL, a Ruby CQL client for Cassandra

Cassandra Query Language (CQL)

Cassandra originally went with a Thrift RPC-based API as a way to provide a common denominator that more idiomatic clients could build upon independently. However, this worked poorly in practice: raw Thrift is too low-level to use productively, and keeping pace with new API methods to support (for example) indexes in 0.7 or distributed counters in 0.8 is too much for many maintainers.

CQL, the Cassandra Query Language, addresses this by pushing all implementation details to the server; all the client has to know for any operation is how to interpret “resultset” objects. So adding a feature like counters just requires teaching the CQL parser to understand “column + N” notation; no client-side changes are necessary.
Continue Reading →

Bookmark and Share
Read full story · Comments { 0 }

Basic Time Series with Cassandra

editors note: as of 7 Mar 2012, this info is still current and correct.

One of the most common use cases for Cassandra is tracking time-series data. Server log files, usage, sensor data, SIP packets, stuff that changes over time. For the most part this is a straight forward process but given that Cassandra has real-world limitations on how much data can or should be in a row, there are a few details to consider.

Continue Reading →

Bookmark and Share
Read full story · Comments { 7 }