Set the inline threshold for a table, schema, or globally
Source:R/advanced.R
db_set_inline_threshold.RdConfigures the row count threshold below which DuckLake automatically inlines small writes to the catalog instead of writing parquet files. The setting is persisted in DuckLake metadata.
See also
db_flush_inlined() to manually flush inlined data
Examples
if (FALSE) { # \dontrun{
db_connect()
# Set threshold for a specific table
db_set_inline_threshold(table = "events", threshold = 50)
# Set threshold for entire schema
db_set_inline_threshold(schema = "raw", table = NULL, threshold = 100)
# Set global threshold
db_set_inline_threshold(schema = NULL, table = NULL, threshold = 20)
# Disable inlining for a table (all writes go directly to parquet)
db_set_inline_threshold(table = "events", threshold = 0)
} # }