Skip to main content

compact_collection

Function compact_collection 

Source
pub async fn compact_collection(
    __arg0: State<Arc<AppState>>,
    __arg1: Path<String>,
) -> impl IntoResponse
Expand description

Compacts the vector storage of a collection, rewriting active vectors into a contiguous layout and reclaiming disk space from deleted entries.

This is a blocking operation that may involve significant I/O for large, fragmented collections.