weizuo93 commented on a change in pull request #5143:
URL: https://github.com/apache/incubator-doris/pull/5143#discussion_r549197433
##########
File path: be/src/exec/olap_scanner.cpp
##########
@@ -538,6 +538,14 @@ Status OlapScanner::close(RuntimeState* state) {
_reader.reset();
Expr::close(_conjunct_ctxs, state);
_is_closed = true;
+ if (config::scan_count_push_tablet_into_compaction_heap != 0 &&
+ _tablet->query_scan_count->value() %
config::scan_count_push_tablet_into_compaction_heap ==
+ 0) {
+
_tablet->data_dir()->push_tablet_into_compaction_heap(CompactionType::BASE_COMPACTION,
Review comment:
@morningman
The default max size of compaction heap is 20. After test, the cost of
`push_tablet_into_compaction_heap`for each tablet is `0.05 ms` averagely.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]