Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MB-64883 - Avoid redundant computation of eligible IDs #2143

Open
wants to merge 5 commits into
base: 7.6.x-couchbase
Choose a base branch
from

Conversation

metonymic-smokey
Copy link
Member

@metonymic-smokey metonymic-smokey commented Feb 20, 2025

Currently, filter eligible hits, which aren't specific to a segment, are computed redundantly for each segment.

This PR pre-computes the eligible segment IDs and re-uses these for each segment.

abhinavdangeti
abhinavdangeti previously approved these changes Feb 20, 2025
@abhinavdangeti
Copy link
Member

@metonymic-smokey with the type for eligibleLocalDocNums changed back to []uint64, I suppose you won't need that segment_api interface change. Have you checked how throughput looks with this?

@metonymic-smokey
Copy link
Member Author

@abhinavdangeti yes, that's why I changed it.

The throughput still isn't too great but as far as I know, no queries are failing unlike when the tests were first run.

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