load()
This method loads the specified partition to memory (for search or query).
Invocation
load(timeout=None, **kwargs)
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
replica_number | Number of the replica(s) to load | Integer | False |
timeout | An optional duration of time in seconds to allow for the RPC. If it is set to None, the client keeps waiting until the server responds or error occurs. | Float | False |
kwargs : _async | Boolean value to indicate if to invoke asynchronously. | Bool | False |
Return
No return.
Raises
InvalidArgumentException
: error if the argument is invalid.
Example
from pymilvus import Partition
partition = Partition("book", "novel", "")
partition.load()