Skip to content

Commit bacb7fa

Browse files
TPortionInfo::GetRecordsCount speed up (#9614)
1 parent 9918d3c commit bacb7fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ydb/core/tx/columnshard/engines/portions/portion_info.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ class TPortionInfo {
518518
if (!columnIdFirst || *columnIdFirst == i.ColumnId) {
519519
result += i.GetMeta().GetNumRows();
520520
columnIdFirst = i.ColumnId;
521+
} else {
522+
break;
521523
}
522524
}
523525
return result;

0 commit comments

Comments
 (0)