GetLoadState()

Returns the load state and loading progress of a collection or partition.

pub async fn get_load_state(&self, request: GetLoadStateRequest) -> Result<GetLoadStateResponse>

Request Syntax

let request = GetLoadStateRequest::builder()
    .collection_name("books")
    .build()?;

REQUEST FIELDS:

  • database_name: Option<String>

    Name of the target database; uses the default database when empty.

  • collection_name: String

    Name of the collection to inspect. Required.

  • partition_names: Vec<String>

    Partition names to check the load state of. Use partition_name() to add one.

RETURNS:

Result

GetLoadStateResponse exposes state() returning a LoadState value (NotExist, NotLoad, Loading, Loaded, or Unknown) and progress() returning the loading progress. Returns Error on failure.

Example

let request = GetLoadStateRequest::builder()
    .collection_name("books")
    .build()?;
let resp = client.get_load_state(request).await?;
println!("state: {:?}, progress: {}", resp.state(), resp.progress());

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?