RDDT: Group-by loop on proxy - #20
Open
hicder-rddt wants to merge 1 commit into
Open
Conversation
hicder-rddt
force-pushed
the
hieu/group-by-loop-on-proxy
branch
3 times, most recently
from
July 7, 2026 18:22
8726fc9 to
0cf4bd3
Compare
hicder-rddt
force-pushed
the
hieu/group-by-loop-on-proxy
branch
2 times, most recently
from
July 16, 2026 12:36
aac8691 to
fdf09c8
Compare
hicder-rddt
force-pushed
the
hieu/group-by-loop-on-proxy
branch
2 times, most recently
from
August 1, 2026 17:00
9a8a4e7 to
b5e3f70
Compare
hicder-rddt
marked this pull request as ready for review
August 1, 2026 17:00
hicder-rddt
force-pushed
the
hieu/group-by-loop-on-proxy
branch
from
August 1, 2026 17:37
b5e3f70 to
0bca3c4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Reduce filter + group-by latency from ~800 ms to ~40 ms (20× faster) by rewriting the group-by execution logic in Milvus.
• Context: A search request needs at least k groups with m docs per group (e.g. 15 groups × 1 doc)..
• Before: Every segment used the ANN iterator to independently find all required groups, which meant a lot of redundant work..
• Now: Each segment just runs a normal HNSW search and returns whatever groups it finds. The proxy merges the results, and only if there still aren't enough unique groups does it issue another round, excluding groups/docs that were already returned..
For example, if one segment returns 10 groups and another returns 5 different groups, the proxy already has the required 15 groups, so there's no need for every segment to find all 15.
• Trade-off: This may reduce recall slightly in some cases, but the nearest groups are still accurate in practice. We can also make the behavior configurable to allow more iterations when higher recall is preferred..
Tests