Re: what consistency level should I set when using IF NOT EXIST or UPDATE IF statements ?

2016-01-14 Thread Hiroyuki Yamada
Thanks DuyHan ! That's clear and helpful. (and I realized that we need to call setSerialConsistency for SERIAL and setConsistency for others.) Thanks, Hiro On Tue, Jan 12, 2016 at 9:34 PM, DuyHai Doan wrote: > There are 2 levels of consistency levels you can define on

Re: what consistency level should I set when using IF NOT EXIST or UPDATE IF statements ?

2016-01-12 Thread DuyHai Doan
There are 2 levels of consistency levels you can define on your query when using Lightweight Transaction: - one for the Paxos round: SERIAL or LOCAL_SERIAL (which indeed corresponds to QUORUM/LOCAL_QUORUM but named differently so people do not get confused) - one for the consistency of the

Re: what consistency level should I set when using IF NOT EXIST or UPDATE IF statements ?

2016-01-11 Thread Hiroyuki Yamada
Can anyone answer my questions ? I think the current datastax documents including python's one don't describe how we should set consistency with lightweight transactions precisely. Regards, Hiro On Fri, Jan 8, 2016 at 11:48 AM, Hiroyuki Yamada wrote: > Thanks Tyler. > >

Re: what consistency level should I set when using IF NOT EXIST or UPDATE IF statements ?

2016-01-07 Thread Hiroyuki Yamada
Thanks Tyler. I've read the python document and it's a bit more clear than before, but i'm still confused at what combinations make lightweight transaction operations work correctly. So, let me clarify the conditions where lightweight transactions work. QUORUM conditional write -> QUORUM read