Datastax Java driver (cassandra-driver-core 2.0.2) for Cassandra supports PreparedStatements as well as QueryBuilder API. Any specific advantages using one over the other? Disadvantages?
Documentation: http://www.datastax.com/documentation/developer/java-driver/2.0/common/drivers/reference/driverReference_r.html
The above doc does not state any advantages over using QueryBuilder API over PreparedStatements, other than writing queries programmatically, which isn't much of an advantage (in my book).
Please share your thoughts and experiences. Thanks.
PreparedStatement
objects fromQueryBuilder
chains so it's pretty easy to move fromQueryBuilder
toPreparedStatement
– Caia