Skip to content

Commit 131989a

Browse files
authored
enhance: Remove the logic to set replica_number=1 by default (#2163)
issue: milvus-io/milvus#34355 Signed-off-by: Wei Liu <[email protected]>
1 parent 9a5e4aa commit 131989a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymilvus/orm/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def set_properties(self, properties: dict, timeout: Optional[float] = None, **kw
373373
def load(
374374
self,
375375
partition_names: Optional[list] = None,
376-
replica_number: int = 1,
376+
replica_number: int = 0,
377377
timeout: Optional[float] = None,
378378
**kwargs,
379379
):

pymilvus/orm/partition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def drop(self, timeout: Optional[float] = None, **kwargs):
172172
conn = self._get_connection()
173173
return conn.drop_partition(self._collection.name, self.name, timeout=timeout, **kwargs)
174174

175-
def load(self, replica_number: int = 1, timeout: Optional[float] = None, **kwargs):
175+
def load(self, replica_number: int = 0, timeout: Optional[float] = None, **kwargs):
176176
"""Load the partition data into memory.
177177
178178
Args:

0 commit comments

Comments
 (0)