pub unsafe extern "C" fn cass_cluster_set_prepare_on_up_or_add_host(
    cluster: *mut CassCluster,
    enabled: cass_bool_t
) -> CassError
Expand description

Enable pre-preparing cached prepared statements when existing hosts become available again or when new hosts are added to the cluster.

This can help mitigate request latency when executing prepared statements by avoiding an extra round trip in cases where the statement is unprepared on a freshly started server. The main tradeoff is extra background network traffic is required to prepare the statements on hosts as they become available.

Default: cass_true

@param cluster @param enabled @return CASS_OK if successful, otherwise an error occurred