Skip to content

Commit

Permalink
correct limit for indexation (count of chunks) (#10811)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 authored Oct 24, 2024
1 parent ab7ff70 commit fb357e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/tx/columnshard/columnshard_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ void TColumnShard::SetupIndexation() {
bytesToIndex += data.BlobSize();
txBytesWrite += data.GetTxVolume();
dataToIndex.push_back(&data);
if (bytesToIndex >= (ui64)Limits.MaxInsertBytes || txBytesWrite >= NOlap::TGlobalLimits::TxWriteLimitBytes) {
if (bytesToIndex >= (ui64)Limits.MaxInsertBytes || txBytesWrite >= NOlap::TGlobalLimits::TxWriteLimitBytes || dataToIndex.size() > 500) {
StartIndexTask(std::move(dataToIndex), bytesToIndex);
dataToIndex.clear();
bytesToIndex = 0;
Expand Down

0 comments on commit fb357e7

Please sign in to comment.