Skip to contents

Remove old consolidated fragments to free space.

Usage

storr_vacuum(uri, what = "all", async = FALSE, context = NULL)

Arguments

uri

The URI path of storr.

what

Which array to vacuum? Defaults to "all" arrays.

async

Should it vacuum asynchronously? Default is FALSE.

context

Optional tiledb_ctx object.

Value

When async = FALSE, it returns TRUE for successful vacuuming. For async = TRUE, it returns a mirai::mirai() object immediately; once resolved, it returns TRUE indicating vacuum success.

Details

The function supports selective vacuuming ("keys"/"data") or full ("all") and it can be run synchronously or asynchronously.

Examples

# URI path
uri <- tempfile()
sto <- storr_tiledb(uri, init = TRUE)

storr_vacuum(uri)
#> [1] TRUE