on-internet
← Community

Why does MilvusClient.query() return only 4 rows with limit=10 after inserting duplicate primary keys?

Stack Overflow ·

I am using Milvus master-20260817-c2a92a8a in cluster mode with PyMilvus 3.0.1rc48. My collection contains 13 distinct primary keys, with three copies of each inserted in a single batch. When I query with limit=100, I get all 13 distinct IDs. With the same filter and limit=10, I get only four. This is the simplified reproduction: import random from pymilvus import DataType, MilvusClient client = MilvusClient( uri="http://localhost:19530", token="root:Milvus", ) collection_name = "repro_duppk_single_seg" schema = client.create_schema( auto_id=False, enable_dynamic_field=False, ) schema.add_fiel

Comments

Sign in or sign up to comment and upvote.

No comments yet.