Skip to content

RDDT: Group-by loop on proxy - #20

Open
hicder-rddt wants to merge 1 commit into
hieu/fix-cpp-testsfrom
hieu/group-by-loop-on-proxy
Open

RDDT: Group-by loop on proxy#20
hicder-rddt wants to merge 1 commit into
hieu/fix-cpp-testsfrom
hieu/group-by-loop-on-proxy

Conversation

@hicder-rddt

@hicder-rddt hicder-rddt commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

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

  • Go tests passed
  • cpp tests passed

@hicder-rddt
hicder-rddt force-pushed the hieu/group-by-loop-on-proxy branch 3 times, most recently from 8726fc9 to 0cf4bd3 Compare July 7, 2026 18:22
@hicder-rddt
hicder-rddt force-pushed the hieu/group-by-loop-on-proxy branch 2 times, most recently from aac8691 to fdf09c8 Compare July 16, 2026 12:36
@hicder-rddt
hicder-rddt force-pushed the hieu/group-by-loop-on-proxy branch 2 times, most recently from 9a8a4e7 to b5e3f70 Compare August 1, 2026 17:00
@hicder-rddt
hicder-rddt marked this pull request as ready for review August 1, 2026 17:00
@hicder-rddt
hicder-rddt changed the base branch from reddit/v2.6.18 to hieu/fix-cpp-tests August 1, 2026 17:00
@hicder-rddt
hicder-rddt force-pushed the hieu/group-by-loop-on-proxy branch from b5e3f70 to 0bca3c4 Compare August 1, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant