Models
what is a model?
Overview
A Preen Model is a fundamental concept that defines how data is accessed and structured for local querying. It acts as a bridge between your raw data sources and the Preen system, allowing for targeted data retrieval.
Definition
A Model is a storage system-dependent configuration that specifies:
The source of the data
The structure or schema of the data
Any filtering or transformation to be applied
Models narrow down the set of data to be used for local querying, ensuring that only relevant information is processed.
Examples
Models can be configured for various types of storage systems. Here are some examples:
SQL Databases
These models are defined as a YAML file that contains a SQL query.
File Systems
These models are configured as a YAML file and contain configurations specific to the underlying file storage system. Here is an example of a model using Amazon S3 and a csv file. The full list of options can be found here.
Benefits of Using Models
Data Isolation: Models allow you to work with specific subsets of your data, improving performance and reducing noise.
Abstraction: They provide a layer of abstraction between your raw data sources and your Preen queries.
Flexibility: Models can be easily adjusted to accommodate changes in data structure or source without affecting the rest of your Preen setup.
Reusability: Once defined, Models can be shared and reused by different users and teams within your organization.
CLI Commands
For detailed configuration reference see Models
Last updated