milvus-sdk-java icon indicating copy to clipboard operation
milvus-sdk-java copied to clipboard

Is there any interface in the Java Sdk that can clear a collection?

Open fufenghua opened this issue 1 year ago • 3 comments

Is there any interface in the Java Sdk that can clear a collection?

fufenghua avatar May 06 '24 10:05 fufenghua

Sounds like the "truncate" of MySQL. No. Milvus doesn't have such an interface.

yhmo avatar May 06 '24 10:05 yhmo

Sounds like the "truncate" of MySQL. No. Milvus doesn't have such an interface. image

anyway,Is there any way to clear a collection of data? Just like operating in attu

fufenghua avatar Jun 20 '24 01:06 fufenghua

current you need to drop and recreate.

we are working on truncate collection already

xiaofan-luan avatar Jun 20 '24 06:06 xiaofan-luan

The Attu calls collection.delete(expr="id > xxx") or collection.delete(expr="pk != \"\"") to clean the data. Milvus doesn't provide "cleanCollection" interface or "truncate" interface.

yhmo avatar Nov 20 '24 04:11 yhmo