Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: Remove the logic to set replica_number=1 by default #2163

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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