aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-11-05 11:37:52 +0300
committerarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-11-05 12:38:40 +0300
commit271e3f61abc85b9750384519f19cf86532d4f3de (patch)
tree897ea7b13ecd65afcb5e1d9ea807f21a77a24272
parent841898f09a28ea772ec64f42ec2a6cdeef7b76d7 (diff)
downloadydb-271e3f61abc85b9750384519f19cf86532d4f3de.tar.gz
YT-21942: Adjustments to adaptive row count feature
First ver commit_hash:2463cc9c403515c1e5605fdcfcecc0f7318b4b70
-rw-r--r--yt/yt/client/table_client/adapters.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt/yt/client/table_client/adapters.cpp b/yt/yt/client/table_client/adapters.cpp
index 35b21ce8cf..648a208ea4 100644
--- a/yt/yt/client/table_client/adapters.cpp
+++ b/yt/yt/client/table_client/adapters.cpp
@@ -212,7 +212,9 @@ void PipeReaderToWriterByBatches(
continue;
}
- if (!batch->IsEmpty() && pipeDelay != TDuration::Zero()) {
+ auto rowsRead = batch->GetRowCount();
+
+ if (pipeDelay != TDuration::Zero()) {
TDelayedExecutor::WaitForDuration(pipeDelay);
}
@@ -228,6 +230,7 @@ void PipeReaderToWriterByBatches(
}
if (optionsUpdater) {
+ options.MaxRowsPerRead = rowsRead;
optionsUpdater(&options, timer.GetElapsedTime());
}
}