Skip to content

Apache DataFusion SQL Query Engine

ARROW-11042: [Rust][DataFusion] Increase default batch size

Heres, Daniel54853eb56777
diff --git a/rust/benchmarks/src/bin/tpch.rs b/rust/benchmarks/src/bin/tpch.rs
index eb789baa7a..cdffd3593c 100644
--- a/rust/benchmarks/src/bin/tpch.rs
+++ b/rust/benchmarks/src/bin/tpch.rs
@@ -52,7 +52,7 @@ struct BenchmarkOpt {
concurrency: usize,
/// Batch size when reading CSV or Parquet files
- #[structopt(short = "s", long = "batch-size", default_value = "4096")]
+ #[structopt(short = "s", long = "batch-size", default_value = "32768")]
batch_size: usize,
/// Path to data files
diff --git a/rust/datafusion/src/execution/context.rs b/rust/datafusion/src/execution/context.rs
index a489c117d5..481011cf75 100644
--- a/rust/datafusion/src/execution/context.rs
+++ b/rust/datafusion/src/execution/context.rs
@@ -492,7 +492,7 @@ impl ExecutionConfig {
pub fn new() -> Self {
Self {
concurrency: num_cpus::get(),
- batch_size: 4096,
+ batch_size: 32768,
query_planner: Arc::new(DefaultQueryPlanner {}),
}
}