I am trying to set the fetch_size on a PreparedStatement on Python for Cassandra driver 3.11.
I can see this is possible on SimpleStatement but I am having problems to find how to use it for PreparedStatement.
Since PreparedStatement is a result of Session.prepare(query)
... I don't know where to pass that param ... or it it's even possible.
You can simply set the
fetch_size
attribute on thePreparedStatement
object. Here's an example:Alternatively, it is possible to set a default for the session with:
For details, see the
Session
API Documentation. Cheers!