> For the complete documentation index, see [llms.txt](https://docs.marpledata.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.marpledata.com/docs/marple-db/datastreams/configuration.md).

# Configuration

Datastream configuration is mainly handled by choosing a correct plugin and plugin arguments. These two fields are used for this:

<figure><img src="/files/6WmKhAv4M33ZBLpb0lUE" alt=""><figcaption></figcaption></figure>

Valid plugin names and arguments can found in [Supported file types](/docs/marple-db/datastreams/supported-file-types.md)

To do data cleaning and setting up a Unified Name Space (UNS), you can use [Preprocessing rules](/docs/marple-db/datastreams/preprocessing-rules.md)

## Data reduction

A datastream can automatically decrease the data size on a signal-by-signal basis. Click the checkbox to enable it:

<figure><img src="/files/QMQgvhsVTYIExcUylnoi" alt="" width="563"><figcaption></figcaption></figure>

This will evaluate for each signal if it can be highly compressed. A typical example would be a status signal (shown below). The algorithm will only keep data points that are different from one of their neighbouring data points. Additionally, a minimum data rate is also guaranteed (default 1Hz).

<figure><img src="/files/WO0K0kpBnnPSWdplIUOR" alt=""><figcaption></figcaption></figure>

Two advanced options (see below) can be configured for this feature

1. **Data reduction frequency**: minimum rate to keep (default: 1Hz)
2. **Data reduction threshold**: minimum compressibility that is needed before applying the reduction (default: 90%)&#x20;

## Advanced options

{% hint style="warning" %}
Advanced options are designed to be used by expert users. For help, reach out to <support@marpledata.com>
{% endhint %}

<table><thead><tr><th width="222.39996337890625">Setting</th><th width="244.4000244140625">Default value</th><th>Details</th></tr></thead><tbody><tr><td>Datapool</td><td><code>default</code> </td><td>Determines the postgres tables where data will be written to</td></tr><tr><td>Downsampled data layers</td><td>2*10^-10 (<code>&#x3C;&#x3C; 32</code>)</td><td>Factor for downsampling layer (in bit shifts)</td></tr><tr><td>Data reduction frequency (Hz)</td><td><code>1</code></td><td>See explanation above</td></tr><tr><td>Data reduction threshold</td><td><code>90</code></td><td>See explanation above</td></tr></tbody></table>
