Avoid counting all bits to improve query performance (#21909)

Signed-off-by: yah01 <yang.cen@zilliz.com>
pull/21919/head
yah01 2023-02-01 18:49:51 +08:00 committed by GitHub
parent 9b491858a5
commit bdcff5b921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}