From af558e282c59cff653031ac0c4a9d424c1cee34c Mon Sep 17 00:00:00 2001 From: Nikita Taranov Date: Fri, 28 Apr 2023 20:48:37 +0000 Subject: [PATCH] impl --- src/IO/ReadSettings.h | 2 +- src/Interpreters/Context.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IO/ReadSettings.h b/src/IO/ReadSettings.h index fc229ada59c..50ef5ec2988 100644 --- a/src/IO/ReadSettings.h +++ b/src/IO/ReadSettings.h @@ -68,7 +68,7 @@ struct ReadSettings /// Method to use reading from remote filesystem. RemoteFSReadMethod remote_fs_method = RemoteFSReadMethod::threadpool; - size_t local_fs_buffer_size = DBMS_DEFAULT_BUFFER_SIZE; + size_t local_fs_buffer_size = 128 * 1024; size_t remote_fs_buffer_size = DBMS_DEFAULT_BUFFER_SIZE; size_t prefetch_buffer_size = DBMS_DEFAULT_BUFFER_SIZE; diff --git a/src/Interpreters/Context.cpp b/src/Interpreters/Context.cpp index afeddbbe170..c78d2e8eb7b 100644 --- a/src/Interpreters/Context.cpp +++ b/src/Interpreters/Context.cpp @@ -4288,7 +4288,7 @@ ReadSettings Context::getReadSettings() const "Invalid value '{}' for max_read_buffer_size", settings.max_read_buffer_size); } - res.local_fs_buffer_size = settings.max_read_buffer_size; + /* res.local_fs_buffer_size = settings.max_read_buffer_size; */ res.remote_fs_buffer_size = settings.max_read_buffer_size; res.prefetch_buffer_size = settings.prefetch_buffer_size; res.direct_io_threshold = settings.min_bytes_to_use_direct_io;