milvus-logo
Star
0
Forks
0
Get Started

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

Example

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

Return

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