Skip to content

Commit

Permalink
Unique customer ids for median benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiemo Bang committed Jul 11, 2024
1 parent 430e2c5 commit dd21cd3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions incremental_transactions/tpcc/benches/byname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ fn byname_plain(
c_middle CHAR(2),
c_last VARCHAR(16),
*/
let c_id = 1;
let c_d_id = 1;
let c_w_id = 1;
//let c_first = "first_name".to_string();
Expand All @@ -81,7 +80,7 @@ fn byname_plain(
.map(|i| {
(
(
Some(c_id),
Some(i), // c_id
Some(c_d_id),
Some(c_w_id),
Some(i.to_string()), // first name
Expand Down Expand Up @@ -117,10 +116,10 @@ fn byname_plain(
.map(|i| {
(
(
Some(c_id),
Some(i), // c_id
Some(c_d_id),
Some(c_w_id),
Some((input.base_size + i).to_string()),
Some((input.base_size + i).to_string()), // first name
Some(c_middle.clone()),
Some(c_last.clone()),
None,
Expand Down Expand Up @@ -263,7 +262,6 @@ fn byname_incremental(
c_middle CHAR(2),
c_last VARCHAR(16),
*/
let c_id = 1;
let c_d_id = 1;
let c_w_id = 1;
//let c_first = "first_name".to_string();
Expand Down Expand Up @@ -303,7 +301,7 @@ fn byname_incremental(
.map(|i| {
(
(
Some(c_id),
Some(i), // c_id
Some(c_d_id),
Some(c_w_id),
Some(i.to_string()), // first name
Expand Down Expand Up @@ -364,7 +362,7 @@ fn byname_incremental(
.map(|i| {
(
(
Some(c_id),
Some(i), // c_id
Some(c_d_id),
Some(c_w_id),
Some((input.base_size + i).to_string()),
Expand Down

0 comments on commit dd21cd3

Please sign in to comment.