mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
Merge pull request #35980 from ucasfl/thread_num
parallel reading files for FileLog Engine
This commit is contained in:
commit
2aa3d32887
@ -723,6 +723,7 @@ bool StorageFileLog::streamToViews()
|
|||||||
size_t rows = 0;
|
size_t rows = 0;
|
||||||
{
|
{
|
||||||
block_io.pipeline.complete(std::move(input));
|
block_io.pipeline.complete(std::move(input));
|
||||||
|
block_io.pipeline.setNumThreads(max_streams_number);
|
||||||
block_io.pipeline.setProgressCallback([&](const Progress & progress) { rows += progress.read_rows.load(); });
|
block_io.pipeline.setProgressCallback([&](const Progress & progress) { rows += progress.read_rows.load(); });
|
||||||
CompletedPipelineExecutor executor(block_io.pipeline);
|
CompletedPipelineExecutor executor(block_io.pipeline);
|
||||||
executor.execute();
|
executor.execute();
|
||||||
|
Loading…
Reference in New Issue
Block a user