Skip to content

Commit

Permalink
Improved example [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 18, 2024
1 parent 82d15ea commit 0563fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/loading/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn main() -> Result<(), Box<dyn Error>> {
println!("\nSuccess!");

// create any indexes *after* loading initial data (skipping for this example)
if std::env::var("TEST_LOADING").unwrap_or("".to_string()) == "index" {
if std::env::var("INDEX").is_ok() {
println!("Creating index");
client.execute("SET maintenance_work_mem = '8GB'", &[])?;
client.execute("SET max_parallel_maintenance_workers = 7", &[])?;
Expand Down

0 comments on commit 0563fcf

Please sign in to comment.