This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new f92b572a97d [fix](invert index) optimize SeekTime profile (#26353) f92b572a97d is described below commit f92b572a97d5f854b3dd239f21ebe485dc27617e Author: zzzxl <33418555+zzzxl1...@users.noreply.github.com> AuthorDate: Fri Nov 3 16:03:29 2023 +0800 [fix](invert index) optimize SeekTime profile (#26353) --- be/src/olap/rowset/segment_v2/segment_iterator.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp b/be/src/olap/rowset/segment_v2/segment_iterator.cpp index c75116db512..b5e7aa7d4bf 100644 --- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp +++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp @@ -1650,8 +1650,12 @@ Status SegmentIterator::_read_columns_by_index(uint32_t nrows_read_limit, uint32 size_t nrows = range.second - range.first; { _opts.stats->block_first_read_seek_num += 1; - SCOPED_RAW_TIMER(&_opts.stats->block_first_read_seek_ns); - RETURN_IF_ERROR(_column_iterators[cid]->seek_to_ordinal(range.first)); + if (_opts.runtime_state && _opts.runtime_state->enable_profile()) { + SCOPED_RAW_TIMER(&_opts.stats->block_first_read_seek_ns); + RETURN_IF_ERROR(_column_iterators[cid]->seek_to_ordinal(range.first)); + } else { + RETURN_IF_ERROR(_column_iterators[cid]->seek_to_ordinal(range.first)); + } } size_t rows_read = nrows; RETURN_IF_ERROR(_column_iterators[cid]->next_batch(&rows_read, column)); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org