Re: what happen if coordinator node fails during write

2013-06-29 Thread Shahab Yunus
Aaron, Can you explain a bit when you say that the client needs to support Atomic Batches in 1.2 and Hector doesn't support it? Does it mean that there is no way of using atomic batch of inserts through Hector? Or did I misunderstand you? Feel free to point me to any link or resource, thanks.

Re: Date range queries

2013-06-29 Thread Oleksandr Petrov
Maybe i'm a bit late to the party, but that can be still useful for reference in future. We've tried to keep documentation for Clojure cassandra driver as elaborate and generic as possible, and it contains raw CQL examples, so you can refer to the docs even if you're using any other driver.

Re: token() function in CQL3 (1.2.5)

2013-06-29 Thread Oleksandr Petrov
Tokens are very useful for pagination and world iteration. For example, when you want to scan an entire table, you want to use token() function. You can refer two guides we've written for Clojure driver (although they do not contain much clojure-specific information. First one is Data Modelling /

Re: Data model for financial time series

2013-06-29 Thread Oleksandr Petrov
You can refer to the Data Modelling guide here: http://clojurecassandra.info/articles/data_modelling.html It includes several things you've mentioned (namely, range queries and dynamic tables). Also, it seems that it'd be useful for you to use indexes, and performing filtering (for things related

Re: Dynamic column family using CQL2, possible?

2013-06-29 Thread Oleksandr Petrov
WITH COMPACT STORAGE should allow accessing your dataset from CQL2, actually. There're newer driver that supports binary CQL, namely https://github.com/iconara/cql-rb which is written by guys from Bart, who know stuff about cassandra :) We're using COMPACT STORAGE for tables we access through

Re: Mixing CAS UPDATE and non-CAS DELETE

2013-06-29 Thread Blair Zajac
On 6/26/13 10:26 AM, Sylvain Lebresne wrote: On Tue, Jun 25, 2013 at 5:30 AM, Blair Zajac bl...@orcaware.com mailto:bl...@orcaware.com wrote: But if I want to delete it regardless of v1, then this doesn't work: DELETE FROM test WHERE k = 0 IF EXISTS That's correct, though we

Re: How to do a CAS UPDATE on single column CF?

2013-06-29 Thread Blair Zajac
On 6/24/13 8:23 PM, Blair Zajac wrote: How does one do an atomic update in a column family with a single column? I have a this CF CREATE TABLE schema_migrations ( version TEXT PRIMARY KEY, ) WITH COMPACTION = {'class': 'LeveledCompactionStrategy'}; Anyone? Should I raise this on the

CorruptBlockException

2013-06-29 Thread Glenn Thompson
Hi, I'm Glenn Thompson and new to Cassandra. I have been trying to figure out how to recover from a CorruptBlockException. My travels have led me to numerous email threads and trouble tickets. I think I did the right thing(s) based on my research. My basic situation. I'm running on non