Skip to content

Commit

Permalink
Times two
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin authored Aug 21, 2024
1 parent c8efabb commit 0619a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execution/physical_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ idx_t PhysicalOperator::EstimatedThreadCount() const {
idx_t result = 0;
if (children.empty()) {
// Terminal operator, e.g., base table, these decide the degree of parallelism of pipelines
result = MaxValue<idx_t>(estimated_cardinality / Storage::ROW_GROUP_SIZE, 1);
result = MaxValue<idx_t>(estimated_cardinality / (Storage::ROW_GROUP_SIZE * 2), 1);
} else if (type == PhysicalOperatorType::UNION) {
// We can run union pipelines in parallel, so we sum up the thread count of the children
for (auto &child : children) {
Expand Down

0 comments on commit 0619a82

Please sign in to comment.