yulongfufu commented on code in PR #22301:
URL: https://github.com/apache/doris/pull/22301#discussion_r1276182054


##########
be/src/vec/exec/scan/new_olap_scanner.cpp:
##########
@@ -130,8 +130,11 @@ Status NewOlapScanner::init() {
     // batch size is passed down to segment iterator, use _state->batch_size()
     // instead of _parent->limit(), because if _parent->limit() is a very small
     // value (e.g. select a from t where a .. and b ... limit 1),
-    // it will be very slow when reading data in segment iterator
-    _tablet_reader->set_batch_size(_state->batch_size());
+    // it will be very slow when reading data with predicate in segment 
iterator
+    _tablet_reader->set_batch_size(

Review Comment:
   Sorry, I'm not very familiar with Doris and the relationship between 
conjuncts and predicates. What I mean to say is that when there is no 
predicate, it may be better to rely on the limit, as that's how SR is written. 
I will find a better way to rewrite this code and do some testing. Thank you 
for your response :)



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to