Skip to main content

compact

Function compact 

Source
pub async fn compact<S: StorageEngine>(
    array_state: &Arc<Mutex<ArrayEngineState>>,
    storage: &Arc<S>,
    name: &str,
    audit_retain_ms: Option<i64>,
) -> Result<QueryResult, LiteError>
Expand description

Execute ArrayOp::Compact for the Lite engine.

If audit_retain_ms is Some, runs retention merge across every segment in the manifest and updates the manifest. rows_affected is set to the number of segments rewritten.

If audit_retain_ms is None, no merge is needed and the call returns immediately with rows_affected = 0.