[bug](scanner) Improve limit query performance on olapScannode and avoid infinite loop (#11301)
1. Fix a bug that query large column table may cause infinite loop 2. Optimize the query logic with limit, for the case where the limit value is relatively small, reduce the parallelism of the scanner, reduce unnecessary resource consumption, and increase the number of similar queries that the system can carry at the same time, and increase the query speed by more than 60%
This commit is contained in:
@ -499,7 +499,7 @@ size_t RowBatch::get_batch_size(const PRowBatch& batch) {
|
||||
void RowBatch::acquire_state(RowBatch* src) {
|
||||
// DCHECK(_row_desc.equals(src->_row_desc));
|
||||
DCHECK_EQ(_num_tuples_per_row, src->_num_tuples_per_row);
|
||||
DCHECK_EQ(_tuple_ptrs_size, src->_tuple_ptrs_size);
|
||||
// DCHECK_EQ(_tuple_ptrs_size, src->_tuple_ptrs_size);
|
||||
DCHECK_EQ(_auxiliary_mem_usage, 0);
|
||||
|
||||
// The destination row batch should be empty.
|
||||
|
||||
Reference in New Issue
Block a user