[improvement](scan) Reduce time to fetch function calls (#23098)

This commit is contained in:
zzzxl
2023-08-22 11:24:55 +08:00
committed by GitHub
parent 438010a214
commit 7450bd504d

View File

@ -1580,7 +1580,9 @@ Status SegmentIterator::_read_columns_by_index(uint32_t nrows_read_limit, uint32
if (_cur_rowid == 0 || _cur_rowid != range_from) {
_cur_rowid = range_from;
_opts.stats->block_first_read_seek_num += 1;
SCOPED_RAW_TIMER(&_opts.stats->block_first_read_seek_ns);
if (_opts.runtime_state && _opts.runtime_state->enable_profile()) {
SCOPED_RAW_TIMER(&_opts.stats->block_first_read_seek_ns);
}
RETURN_IF_ERROR(_seek_columns(_first_read_column_ids, _cur_rowid));
}
size_t rows_to_read = range_to - range_from;