未验证 提交 bdcff5b9 编写于 作者: Y yah01 提交者: GitHub

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

Signed-off-by: Nyah01 <yang.cen@zilliz.com>
上级 9b491858
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册