Skip to content

Does Milvus Optimize to Reduce the Number of TopK Queries at Runtime? #40360

You must be logged in to vote
  • The PruneSegments() in segment_pruner.go only takes effect when there is a clustering key in collection schema.

    clusteringKeyField := clustering.GetClusteringKeyField(schema)

    With clustering key, all data is organized into segments with a certain sequence, so that PruneSegments() can quickly know which segment can be skipped for search.

  • The OptimizeSearchParams() in query_hook.go accepts a QueryHook interface. QueryHook is a plugin which is loaded in querynode initialization:

    h, err := p.Lookup("QueryNodePlugin")

    The m…

Replies: 1 comment 3 replies

You must be logged in to vote
3 replies
@zetta-cai

@yhmo

yhmo Mar 5, 2025
Collaborator

Answer selected by zetta-cai
@zetta-cai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants