You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2023/11/01 03:29:38 UTC
(doris) branch master updated: [fix](seek) add SeekCount and SeekTime profile (#26009)
This is an automated email from the ASF dual-hosted git repository.
jianliangqi 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 7914b7b19e6 [fix](seek) add SeekCount and SeekTime profile (#26009)
7914b7b19e6 is described below
commit 7914b7b19e6fd81020d3721bb2ca0b91832cc9a3
Author: zzzxl <33...@users.noreply.github.com>
AuthorDate: Wed Nov 1 11:29:29 2023 +0800
[fix](seek) add SeekCount and SeekTime profile (#26009)
---
be/src/olap/rowset/segment_v2/segment_iterator.cpp | 7 +++++--
1 file changed, 5 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 f5ccbef0adc..bd7799ff167 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -1648,8 +1648,11 @@ Status SegmentIterator::_read_columns_by_index(uint32_t nrows_read_limit, uint32
}
for (auto& range : _split_row_ranges) {
size_t nrows = range.second - range.first;
-
- RETURN_IF_ERROR(_column_iterators[cid]->seek_to_ordinal(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));
+ }
size_t rows_read = nrows;
RETURN_IF_ERROR(_column_iterators[cid]->next_batch(&rows_read, column));
if (rows_read != nrows) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org