Skip to content

Commit

Permalink
enhance: Remove the logic to set replica_number=1 by default (#2163)
Browse files Browse the repository at this point in the history
issue: milvus-io/milvus#34355

Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
weiliu1031 authored Jul 4, 2024
1 parent 9a5e4aa commit 131989a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymilvus/orm/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
):
Expand Down
2 changes: 1 addition & 1 deletion pymilvus/orm/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 131989a

Please sign in to comment.