Skip to content

MB-70410: Simplify CoalesceQueue in hierarchical nested search#2283

Merged
CascadingRadium merged 1 commit intomasterfrom
cq
Feb 3, 2026
Merged

MB-70410: Simplify CoalesceQueue in hierarchical nested search#2283
CascadingRadium merged 1 commit intomasterfrom
cq

Conversation

@CascadingRadium
Copy link
Member

@CascadingRadium CascadingRadium commented Feb 2, 2026

  • Simplifies the CoalesceQueue used in nested conjunction search by moving coalescing from enqueue to dequeue. This removes the separate map and reduces memory use while keeping behavior the same.

@coveralls
Copy link

Coverage Status

coverage: 52.687% (+0.02%) from 52.666%
when pulling 623d979 on cq
into 9d07cde on master.

@CascadingRadium CascadingRadium changed the title Refactor CoalesceQueue to defer coalescing until dequeue Refactor CoalesceQueue to defer coalescing until dequeue Feb 2, 2026
@CascadingRadium CascadingRadium changed the title Refactor CoalesceQueue to defer coalescing until dequeue MB-70410: Refactor CoalesceQueue to defer coalescing until dequeue Feb 2, 2026
@CascadingRadium CascadingRadium changed the title MB-70410: Refactor CoalesceQueue to defer coalescing until dequeue MB-70410: Simplify CoalesceQueue in hierarchical nested search Feb 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the CoalesceQueue implementation used in nested conjunction search by deferring the coalescing of duplicate documents from enqueue time to dequeue time. This simplification removes the need for a separate map while maintaining identical behavior.

Changes:

  • Removed the items map from CoalesceQueue structure, reducing memory overhead
  • Simplified Enqueue method to append items without coalescing or error handling
  • Enhanced Dequeue method to merge consecutive duplicates after sorting, handling recycling of merged items
  • Updated call sites in Next() and Advance() methods to match the new signature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abhinavdangeti abhinavdangeti added this to the v2.6.0 milestone Feb 2, 2026
@CascadingRadium CascadingRadium merged commit 74cb8d1 into master Feb 3, 2026
16 checks passed
@CascadingRadium CascadingRadium deleted the cq branch February 3, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants

Comments