Skip to content

Commit 1f8cec3

Browse files
authored
MINOR: [C++][Parquet][Docs] Increase chunk_size in docs (#40705)
### Rationale for this change Is there a reason we're using a low value here. All other examples use `128*1024` or `64*1024`. I was stumped by this as I used it without really reading about the parameter and spent a day figuring out why my parquet writes were so slow. ### What changes are included in this PR? Increase `chunk_size` to `64*1024` ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. Authored-by: Shadab Zafar <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 5a48044 commit 1f8cec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/examples/arrow/parquet_read_write.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ arrow::Status WriteFullFile(std::string path_to_file) {
120120

121121
ARROW_RETURN_NOT_OK(parquet::arrow::WriteTable(*table.get(),
122122
arrow::default_memory_pool(), outfile,
123-
/*chunk_size=*/3, props, arrow_props));
123+
/*chunk_size=*/64*1024, props, arrow_props));
124124
return arrow::Status::OK();
125125
}
126126

0 commit comments

Comments
 (0)