🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

milvus-logo
LFAI
< Docs
  • Node

flush()

Milvus temporarily buffers newly inserted vectors in cache. This method is asynchronous and persists inserted entities to object storage. After calling this method, you need to wait for a period of time for the data to be flushed.

Invocation

new milvusClient(MILUVS_ADDRESS).dataManager.flush(FlushReq);

Parameters

FlushReq

ParameterDescriptionTypeRequired
collection_namesAn array of the names of collections that contain the data to flushString arrayTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

new milvusClient(MILUVS_ADDRESS).dataManager.flush({
  collection_names: ["my_collection"],
});

Return

// flush return
{
  status: { error_code: 'Success', reason: '' },
  coll_segIDs: { my_collection: { data: [] } }
}

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?