summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivanmorozov333 <[email protected]>2024-09-23 17:36:42 +0300
committerGitHub <[email protected]>2024-09-23 17:36:42 +0300
commitbacb7fa9f3f2701b35003e858dbdb075ddec91fd (patch)
treede3755b37939b097917ee0f19eb5e75cfdee06a4
parent9918d3c8872725654382e964dd58dce272022195 (diff)
TPortionInfo::GetRecordsCount speed up (#9614)
-rw-r--r--ydb/core/tx/columnshard/engines/portions/portion_info.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ydb/core/tx/columnshard/engines/portions/portion_info.h b/ydb/core/tx/columnshard/engines/portions/portion_info.h
index 6fa105745b0..1591765f83e 100644
--- a/ydb/core/tx/columnshard/engines/portions/portion_info.h
+++ b/ydb/core/tx/columnshard/engines/portions/portion_info.h
@@ -518,6 +518,8 @@ public:
if (!columnIdFirst || *columnIdFirst == i.ColumnId) {
result += i.GetMeta().GetNumRows();
columnIdFirst = i.ColumnId;
+ } else {
+ break;
}
}
return result;