Data Acceleration
Configure local acceleration for datasets in Spice for faster queries (test)
Last updated
Was this helpful?
Configure local acceleration for datasets in Spice for faster queries (test)
Last updated
Was this helpful?
Datasets can be locally accelerated by the Spice runtime, pulling data from any and storing it locally in a for faster access. The data can be kept up-to-date in real-time or on a refresh schedule, ensuring users always have the latest data locally for querying.
Dataset acceleration is enabled by setting the acceleration
configuration. Spice currently supports In-Memory Arrow, DuckDB, SQLite, PostgreSQL as accelerators. For engine specific configuration, see
Spice supports three modes to refresh/update locally accelerated data from a connected data source. full
is the default mode. Refer to documentation for detailed refresh usage and configuration.
full
Replace/overwrite the entire dataset on each refresh
A table of users
append
Append/add data to the dataset on each refresh
Append-only, immutable datasets, such as time-series or log data
changes
Apply incremental changes
Customer order lifecycle table
Constraints enforce data integrity in a database. Spice supports constraints on locally accelerated tables to ensure data quality and configure behavior for data updates that violate constraints.
Database indexes are essential for optimizing query performance. Configure indexes for accelerators via indexes
field. For detailed configuration, refer to the documentation.
Constraints are specified using in the Spicepod via the primary_key
field in the acceleration configuration. Additional unique constraints are specified via the field with the value unique
. Data that violates these constraints will result in a . For constraints configuration details, visit .