mirror of https://github.com/milvus-io/milvus.git
Avoid counting all bits to improve query performance (#21909)
Signed-off-by: yah01 <yang.cen@zilliz.com>pull/21919/head
parent
9b491858a5
commit
bdcff5b921
|
@ -134,7 +134,7 @@ ExecPlanNodeVisitor::visit(RetrievePlanNode& node) {
|
|||
|
||||
segment->mask_with_delete(bitset_holder, active_count, timestamp_);
|
||||
// if bitset_holder is all 1's, we got empty result
|
||||
if (bitset_holder.count() == bitset_holder.size()) {
|
||||
if (bitset_holder.all()) {
|
||||
retrieve_result_opt_ = std::move(retrieve_result);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue