> 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="https://3590686807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwEBNWlmdcxXBXd7oyqyR%2Fuploads%2FiOKEk9J9eqQCxwv0OQMB%2Fplugin-settings.png?alt=media&amp;token=61d64eee-09fe-40d3-a14c-a5c1860599ac" 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 [Signal Calibration](/docs/marple-db/datastreams/signal-calibration.md) or [Signal Aliasing](/docs/marple-db/datastreams/signal-aliasing.md).

By enabling "Ask plugin arguments on upload", a pop-up will open when dropping a file in the datastream where you can configure custom arguments for this specific file.

<figure><img src="https://3590686807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwEBNWlmdcxXBXd7oyqyR%2Fuploads%2Fc7LwBx9S50NU7X1hYlso%2Fimage.png?alt=media&amp;token=589a8d39-d423-4c20-9958-60c2546a547c" alt=""><figcaption></figcaption></figure>

## 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="https://3590686807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwEBNWlmdcxXBXd7oyqyR%2Fuploads%2FRQDPBo015eqSYkiTrQUP%2Fimage.png?alt=media&amp;token=8b17f4f8-d8ee-4fc2-9e46-d86e58282f52" 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="https://3590686807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwEBNWlmdcxXBXd7oyqyR%2Fuploads%2F4hK8o9ES6Xc2R2GLW7HR%2Fdata-reduction.png?alt=media&amp;token=a3c36468-3cd5-465e-b802-278167a283f2" 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>
