SERIAL CONSISTENCY management

26 views
Skip to first unread message

regis le bretonnic

unread,
May 2, 2018, 5:26:24 AM5/2/18
to DataStax PHP Driver for Apache Cassandra User Mailing List
Hi everybody,

We have a cluster made of 2 datacenters, and we want to change serial consistency to LOCAL_SERIAL. How to manage differently CONSISTENCY and SERIAL CONSISTENCY.

In java, there are 2 options(https://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Statement.html) :
- setConsistencyLevel
- setSerialConsistencyLevel

I didn't find any information about this with the PHP driver. Does someone know how to do it ?

Regards

Michael Fero

unread,
May 3, 2018, 3:44:22 PM5/3/18
to DataStax PHP Driver for Apache Cassandra User Mailing List

regis le bretonnic

unread,
May 22, 2018, 8:47:09 AM5/22/18
to DataStax PHP Driver for Apache Cassandra User Mailing List
Le jeudi 3 mai 2018 21:44:22 UTC+2, Michael Fero a écrit :
> You can use an array of execution options when executing the statement via the session; https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Session/#methods and https://docs.datastax.com/en/developer/php-driver/latest/features/consistency_level/#consistency-levels-are-specified-via-an-array-of-execution-options.
>
> ~Fero

Sorry for my late answer...
It is very clear. Thx a lot for the explaination. I missed that page.
Reply all
Reply to author
Forward
0 new messages