milvus
milvus copied to clipboard
[Enhancement]: local reduce can be optimized if only one segment is involved
Is there an existing issue for this?
- [X] I have searched the existing issues
What would you like to be added?
https://github.com/milvus-io/milvus/blob/77f4f0c5a82f71c148a10e4719df48033dfd4d6c/internal/core/src/segcore/Reduce.cpp#L222-L311
Why is this needed?
If only one segment was involved in the reduce phase, in fact we waste the cpu of heap-sort to complete the reduce. We can do it more simply.
Anything else?
No response
the tracing can be found in https://github.com/milvus-io/milvus/pull/32734
seems to be a promising optimization
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen
.