Skip to content

MB-70770: [BP] Optimize a few APIs in hierarchy search#431

Merged
CascadingRadium merged 1 commit into
v17-8.0.x-couchbasefrom
optimizeNestedBP
Jun 26, 2026
Merged

MB-70770: [BP] Optimize a few APIs in hierarchy search#431
CascadingRadium merged 1 commit into
v17-8.0.x-couchbasefrom
optimizeNestedBP

Conversation

@CascadingRadium

@CascadingRadium CascadingRadium commented Jun 25, 2026

Copy link
Copy Markdown
Member

- Optimize `countRoot` to use bitmap iterator instead of
bitmap.Iterate(), avoiding callback overhead.
- Optimize `AddNestedDocuments` to take advantage of the monotonic,
preorder nature of document numbers of the root and child documents in
the segment to avoid repeatedly scanning the entire edge list multiple
times.
- Un-export all edge list methods as they are for internal use only.
@CascadingRadium CascadingRadium merged commit c20fd68 into v17-8.0.x-couchbase Jun 26, 2026
6 checks passed
@CascadingRadium CascadingRadium deleted the optimizeNestedBP branch June 26, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants