Skip to content

Commit

Permalink
Update execution-profiles.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nsipplswezey authored Oct 22, 2023
1 parent d1a8ec1 commit d76d07a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/source/execution-profiles/execution-profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ There are two classes of objects related to execution profiles: `ExecutionProfil
At any moment, handles [can be remapped](remap.md) to point to another `ExecutionProfile`. This allows convenient switching between workloads for all `Sessions` and/or `Statements` that, for instance, share common characteristics.

```eval_rst
use anyhow::Result;
use scylla::load_balancing;
use scylla::query::Query;
use scylla::retry_policy::{DefaultRetryPolicy, FallthroughRetryPolicy};
use scylla::speculative_execution::PercentileSpeculativeExecutionPolicy;
use scylla::statement::{Consistency, SerialConsistency};
use scylla::transport::session::Session;
use scylla::transport::ExecutionProfile;
use scylla::{SessionBuilder, SessionConfig};
use std::env;
use std::sync::Arc;
use std::time::Duration;
println!("Hello")
```

Expand Down

0 comments on commit d76d07a

Please sign in to comment.