Platinum Partner
news,architects,nosql,architecture,apache cassandra

Cassandra 1.2 Has Native Support for Collections

In case you haven't seen it yet,  Apache released Cassandra 1.2:

I'm stoked.   Presently we write maps/lists as text blobs in Cassandra using JSON.  This has obvious limitations.  In order to add something to the map/list, we need to read the list, append the data then write the data back to C*.  Read before write is not good, especially in a large distributed system. Two clients could read at the same time, append, and the second write would effectively remove the element added by the first.  Not good.
Although I think the Thrift support is a bit clunky (via JSON), CQL3 supports native operations on collections. 

Now, we just need to figure out how to migrate all of our data. =)

For more information see: http://www.datastax.com/dev/blog/cql3_collections

Published at DZone with permission of {{ articles[0].authors[0].realName }}, DZone MVB. (source)

Opinions expressed by DZone contributors are their own.

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}