LoadState

The load state of a collection or partition.

public enum LoadState
{
    NotExist = 0,
    NotLoad = 1,
    Loading = 2,
    Loaded = 3
}

Constants:

  • NotExist (0)

    The entity does not exist.

  • NotLoad (1)

    The entity is not loaded.

  • Loading (2)

    The entity is being loaded.

  • Loaded (3)

    The entity is loaded.

Example

using Milvus.Client.V2;
using Milvus.Client.V2.Requests.Collection;
using Milvus.Client.V2.Responses.Collection;

using var client = new MilvusClientV2(new ConnectConfig
{
    Uri = "localhost:19530",
    Username = "root",
    Password = "Milvus"
});

GetLoadStateResp loadState = await client.GetLoadStateAsync(new GetLoadStateReq
{
    CollectionName = "my_collection"
});

Console.WriteLine(loadState.State == LoadState.Loaded ? "Loaded" : "Not loaded");

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?