Skip to content

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

Merged
metonymic-smokey merged 5 commits into7.6.x-couchbasefrom
fix
Feb 24, 2025
Merged

MB-64883 - Avoid redundant computation of eligible IDs #2143
metonymic-smokey merged 5 commits into7.6.x-couchbasefrom
fix

Conversation

@metonymic-smokey
Copy link
Contributor

@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
Contributor 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.

@metonymic-smokey metonymic-smokey merged commit a20efc1 into 7.6.x-couchbase Feb 24, 2025
9 checks passed
abhinavdangeti added a commit that referenced this pull request Feb 24, 2025
|\
| * a20efc1 Aditi Ahuja | MB-64883 - Avoid redundant computation of eligible IDs  (#2143)
abhinavdangeti added a commit that referenced this pull request Feb 24, 2025
|\
| * a20efc1 Aditi Ahuja | MB-64883 - Avoid redundant computation of
eligible IDs (#2143)`

---------

Co-authored-by: Aditi Ahuja <48997495+metonymic-smokey@users.noreply.github.com>
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