Skip to content

Commit

Permalink
Merge pull request #648 from Altinity/features/fix_parallel_loading_i…
Browse files Browse the repository at this point in the history
…n_distributed_requests

Limit parsing threads for distibuted case
  • Loading branch information
Enmk authored Feb 25, 2025
2 parents 0af9297 + a502980 commit 2372cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Storages/ObjectStorage/StorageObjectStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class ReadFromObjectStorageStep : public SourceStepWithFilter
num_streams = 1;
}

const size_t max_parsing_threads = num_streams >= max_threads ? 1 : (max_threads / std::max(num_streams, 1ul));
const size_t max_parsing_threads = (distributed_processing || num_streams >= max_threads) ? 1 : (max_threads / std::max(num_streams, 1ul));

for (size_t i = 0; i < num_streams; ++i)
{
Expand Down

0 comments on commit 2372cfb

Please sign in to comment.