ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Search Ask AI
ScyllaDB Docs ScyllaDB Node.js Driver API Reference Classes ExecutionProfile

ExecutionProfile¶

ExecutionProfile(name, optionsopt)

Represents a set configurations to be used in a statement execution to be used for a single Client instance.

An ExecutionProfile instance should not be shared across different Client instances.

Constructor¶

new ExecutionProfile(name, optionsopt)

Parameters:
Name Type Attributes Description
name String

Name of the execution profile. Use 'default' to specify that the new instance should be the default ExecutionProfile if no profile is specified in the execution.

options Object <optional>

Profile options, when any of the options is not specified the Client will the use the ones defined in the default profile. See ClientOptions for more details.

Properties
Name Type Attributes Description
consistency Number <optional>

The consistency level to use for this profile.

loadBalancing LoadBalancingPolicy <optional>

The load-balancing policy to use for this profile.

readTimeout Number <optional>

The client per-host request timeout to use for this profile.

retry RetryPolicy <optional>

The retry policy to use for this profile.

serialConsistency Number <optional>

The serial consistency level to use for this profile.

Source

execution-profile.js, line 27

Example
const { Client, ExecutionProfile } = require('cassandra-driver');
const client = new Client({
  contactPoints: ['host1', 'host2'],
  profiles: [
    new ExecutionProfile('metrics-oltp', {
      consistency: consistency.localQuorum,
      retry: myRetryPolicy
    })
  ]
});

client.execute(query, params, { executionProfile: 'metrics-oltp' }, callback);

Members¶

consistency :Number

Consistency level.

Type:
  • Number

Source

execution-profile.js, line 54

loadBalancing :LoadBalancingPolicy

Load-balancing policy

Type:
  • LoadBalancingPolicy

Source

execution-profile.js, line 59

name :String

Name of the execution profile.

Type:
  • String

Source

execution-profile.js, line 49

readTimeout :Number

Client read timeout.

Type:
  • Number

Source

execution-profile.js, line 64

retry :RetryPolicy

Retry policy.

Type:
  • RetryPolicy

Source

execution-profile.js, line 69

serialConsistency :Number

Serial consistency level.

Type:
  • Number

Source

execution-profile.js, line 74

Was this page helpful?

PREVIOUS
ExecutionOptions
NEXT
FrameReader
  • Create an issue
  • Edit this page

On this page

  • ExecutionProfile
    • Constructor
    • Members
ScyllaDB Node.js Driver
Search Ask AI
  • main
    • main
  • API Reference
    • Modules
      • auth
        • AuthProvider
        • Authenticator
        • PlainTextAuthProvider
      • concurrent
      • datastax
      • errors
        • ArgumentError
        • AuthenticationError
        • BusyConnectionError
        • DriverInternalError
        • NoHostAvailableError
        • NotSupportedError
        • OperationTimedOutError
        • ResponseError
      • geometry
      • mapping
        • DefaultTableMappings
        • Mapper
        • ModelBatchItem
        • ModelMapper
        • Result
        • UnderscoreCqlToCamelCaseMappings
        • TableMappings
      • metadata
        • Aggregate
        • ClientState
        • ColumnMetadata
        • Index
        • KeyspaceMetadata
        • MaterializedView
        • Metadata
        • SchemaFunction
        • Strategy
        • TableMetadata
        • UdtField
        • UserDefinedType
      • metrics
        • DefaultMetrics
        • ClientMetrics
      • policies
        • addressResolution
          • AddressTranslator
          • EC2MultiRegionTranslator
          • MappingAddressTranslator
        • loadBalancing
          • AllowListPolicy
          • DCAwareRoundRobinPolicy
          • DefaultLoadBalancingPolicy
          • LegacyDefaultLoadBalancingPolicy
          • LoadBalancingConfig
          • LoadBalancingPolicy
          • RoundRobinPolicy
          • TokenAwarePolicy
        • reconnection
          • ConstantReconnectionPolicy
          • ExponentialReconnectionPolicy
          • ReconnectionPolicy
        • retry
          • FallthroughRetryPolicy
          • RetryPolicy
        • speculativeExecution
          • ConstantSpeculativeExecutionPolicy
          • NoSpeculativeExecutionPolicy
          • SpeculativeExecutionPolicy
        • timestampGeneration
          • MonotonicTimestampGenerator
          • TimestampGenerator
      • tracker
        • RequestLogger
        • RequestTracker
      • types
        • Duration
        • InetAddress
        • Integer
        • LocalDate
        • Long
        • ResultSet
        • ResultStream
        • Row
        • TimeUuid
        • Vector
    • Classes
      • AddressResolver
      • ByteOrderedToken
      • Client
      • Encoder
      • EncoderMembers
      • ExecutionOptions
      • ExecutionProfile
      • FrameReader
      • HashSet
      • Host
      • HostMap
      • LineString
      • Murmur3Token
      • Point
      • Polygon
      • PreparedInfo
      • RandomToken
      • SslOptions
      • Token
      • TokenRange
    • Interfaces
    • Events
    • Global Functions and Constants
Docs Tutorials University Contact Us About Us
© 2026 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 14 May 2026.
Powered by Sphinx 9.1.0 & ScyllaDB Theme 1.9.2