Skip to content

Commit 3050d7d

Browse files
Revert default batch size for server side loader
1 parent ed4c6e8 commit 3050d7d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/tpcc-runner/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ cargo run --release -p tpcc-runner -- load \
130130

131131
`--batch-size` still matters for `load`, but it now controls the server-side
132132
chunk size for phases like items, stock, and orders instead of the number of
133-
rows pushed over the websocket by the client. The default is `10000`.
133+
rows pushed over the websocket by the client. The default is `500`.
134134

135135
If a server-side load fails, the current `load` command does not resume it
136136
automatically. Resume each affected database manually with:
@@ -257,7 +257,7 @@ timeout_secs = 30
257257
num_databases = 1
258258
warehouses_per_database = 1
259259
load_parallelism = 1
260-
batch_size = 10000
260+
batch_size = 500
261261
reset = true
262262

263263
[driver]

tools/tpcc-runner/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
77

88
use crate::protocol::DriverAssignment;
99

10-
const DEFAULT_LOAD_BATCH_SIZE: usize = 10_000;
10+
const DEFAULT_LOAD_BATCH_SIZE: usize = 500;
1111

1212
#[derive(Debug, Parser)]
1313
#[command(name = "tpcc-runner")]
@@ -452,7 +452,7 @@ mod tests {
452452
}
453453

454454
#[test]
455-
fn load_args_default_batch_size_is_10000() {
455+
fn load_args_default_batch_size_is_500() {
456456
let args = LoadArgs {
457457
connection: ConnectionArgs::default(),
458458
num_databases: Some(1),

0 commit comments

Comments
 (0)