# Priming metrics

## Objective

Prime a metric family dataset with existing calculated data on process startup.

{% hint style="success" %}
Joule will load an existing dataset from disk to memory as an initial image if this feature is enabled
{% endhint %}

## Uses

Often business applications will start processing immediately rather than wait for a set period of time before systems settle, or in this case metrics created.

Hence, by priming the Joule process with a pre-calculated set of metrics processing can start immediately.&#x20;

{% hint style="info" %}
For configuration details read the [Data priming at initialisation](https://docs.fractalworks.io/joule/components/pipelines/data-priming) page
{% endhint %}

## Example

This example loads a local parquet file to the target `BidMovingAverage` metric family table

```yaml
stream:
  ...
  initialisation:
    data import:
      parquet:
        - schema: standardQuoteAnalyticsStream
          table: BidMovingAverage      
          files: ['data/parquet/mvavgs-prime.parquet']
          drop table: true
          index:
            fields: [ 'symbol' ]
            unique: false
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fractalworks.io/joule/components/analytics/metrics-engine/priming-metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
