Skip to content

Commit

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

issue: milvus-io/milvus#34355

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
  • Loading branch information
weiliu1031 committed Jul 4, 2024
1 parent b60eb78 commit ada1888
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 ada1888

Please sign in to comment.