From bacb7fa9f3f2701b35003e858dbdb075ddec91fd Mon Sep 17 00:00:00 2001 From: ivanmorozov333 Date: Mon, 23 Sep 2024 17:36:42 +0300 Subject: TPortionInfo::GetRecordsCount speed up (#9614) --- ydb/core/tx/columnshard/engines/portions/portion_info.h | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.3