milvus-logo

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

Example

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

Return

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