• Glossary
  • Support
  • Downloads
  • DataStax Home
Get Live Help
Expand All
Collapse All

Developing applications with DataStax drivers

    • Getting started
    • Overview
      • Authentication in DataStax drivers
      • Best practices
      • Driver metrics
    • Connecting
      • Client errors
      • Connecting to DataStax Astra databases
      • Connecting to the database
      • Connection pooling
      • Error handling
      • Reconnection policies
      • Retry policies
      • Server errors
      • Using SSL in DataStax drivers
    • Managing
      • Load balancing with DataStax drivers
      • Using DSE Search with the DataStax drivers
      • Guided code experience examples
      • Managing concurrency in asynchronous query execution
      • Result paging with DataStax drivers
    • Developing
      • Submitting DSE Graph queries with the DataStax drivers
      • Execution profiles
      • Working with multi-workload clusters
      • Object mappers in DSE drivers
      • Submitting queries
      • Query idempotence
      • Query timestamps
      • Speculative query execution
      • Synchronous and asynchronous query execution
  • Developing applications with DataStax drivers
  • Developing
  • Execution profiles

Execution profiles

Execution profiles allows a single session to run different types of query workloads, each with its own settings.

An execution profile encapsulates a group of settings that can then be associated with individual queries. This provides a convenient way to group queries based on the following settings:

  • Request timeout

  • Consistency level

  • Load balancing policy

  • Retry policy

  • Speculative execution policy

This is not an exhaustive list and can vary by driver implementation.

Table 1. Execution policies for drivers

C/C++

C#

Java

Node.js

PHP [1]

Python

Ruby

Using execution profiles

Create, configure, and register an execution profile object by name using the cluster or session objects, depending on the driver. Associate the named execution profile object with a query by providing the name to the query execution method or setting it on a statement object.

The method of associating the profile name with the query execution can vary by driver implementation. See the language-specific documentation for additional details on using execution profiles.

Footnotes


1. Execution profiles are not supported by the PHP driver.
Submitting DSE Graph queries with the DataStax drivers Working with multi-workload clusters

General Inquiries: +1 (650) 389-6000 info@datastax.com

© DataStax | Privacy policy | Terms of use

DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.

Kubernetes is the registered trademark of the Linux Foundation.

landing_page landingpage