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

milvus-logo
LFAI
< Docs
  • Node

flushSync()

This synchronous method is the same as the asynchronous flush() method. The difference is that this method ensures that data is flushed when the function result is returned.

Invocation

new milvusClient(MILUVS_ADDRESS).collectionManager.flushSync(FlushReq);

Parameters

FlushReq

ParameterDescriptiontyperequired
collection_namesAn array of the names of the collections to flushString[]True
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

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

Return

// flushSync return
{ status: { error_code: 'Success', reason: '' }, flushed: true }

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?