From 0860520d712e0aa2bd081073100ce16eade57906 Mon Sep 17 00:00:00 2001 From: wei liu Date: Thu, 4 Jul 2024 14:20:10 +0800 Subject: [PATCH] enhance: Remove the logic to set replica_number=1 by default (#2163) (#2167) issue: milvus-io/milvus#34355 Signed-off-by: Wei Liu --- pymilvus/orm/collection.py | 2 +- pymilvus/orm/partition.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pymilvus/orm/collection.py b/pymilvus/orm/collection.py index 1524b7705..c5b93d066 100644 --- a/pymilvus/orm/collection.py +++ b/pymilvus/orm/collection.py @@ -373,7 +373,7 @@ def set_properties(self, properties: dict, timeout: Optional[float] = None, **kw def load( self, partition_names: Optional[list] = None, - replica_number: int = 1, + replica_number: int = 0, timeout: Optional[float] = None, **kwargs, ): diff --git a/pymilvus/orm/partition.py b/pymilvus/orm/partition.py index 8b61f17bd..e860f4cad 100644 --- a/pymilvus/orm/partition.py +++ b/pymilvus/orm/partition.py @@ -172,7 +172,7 @@ def drop(self, timeout: Optional[float] = None, **kwargs): conn = self._get_connection() return conn.drop_partition(self._collection.name, self.name, timeout=timeout, **kwargs) - def load(self, replica_number: int = 1, timeout: Optional[float] = None, **kwargs): + def load(self, replica_number: int = 0, timeout: Optional[float] = None, **kwargs): """Load the partition data into memory. Args: