Mike
unread,Jul 24, 2016, 12:01:49 AM7/24/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DataStax C++ Driver for Apache Cassandra User Mailing List
I am working on converting a C module that currently talks to Cassandra using the thrift interface to using the DataStax C++ driver version 2.4.1.
With the thrift interface when executing a prepared statement the sequence is:
1. Prepare the statement, which returns the compiled statement’s associated “itemId”.
2. Execute the prepared statement multiple times with various bound parameters, using said “itemId”.
3. If prepared execute fails because the coordinator node being used is not currently available, then the prepared execute cannot be directly retried on another coordinator, the statement must first be prepared again on the new coordinator before execution can be retried.
With the DataStax C++ driver is something similar required? Specifically:
1. Prepare the statement with, “cass_session_prepare”.
2. Execute the statement with, “cass_session_execute”.
3. If prepared execution fails because one of the nodes has gone down, do I need to prepare the statement again before retrying execution?
Thanks,
Mike.