> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-center-4/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-center-4/data-center/data-store-meta-data/creating-a-new-meta-data-store.md).

# Creating a New Meta Data Store

There are two ways to create Data Store Meta Data:

1. By mapping to an existing Collection
2. Without mapping to any existing Collection

## Creation by Mapping to an Existing Collection <a href="#creation-by-mapping-to-an-existing-collection" id="creation-by-mapping-to-an-existing-collection"></a>

The Data Store Metadata can be created by mapping it with an existing collection. In this case, it will display the data of the mapped collection.

* Navigate to the ***Data Center*** ***Homepage***.
* Click the ***New*** menu.
* Select the ***Data Store Meta Data*** option from the ***New*** context menu.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/1Ub0WFLYO6SKUjCSjXpr/image.png" alt=""><figcaption></figcaption></figure>

* A new page asking for the ***Meta Store*** details opens.
* Enter a Data Store Name.
* Provide the Description of the Data Store Meta Data.
* Choose a ***Collection Name*** from the drop-down list (optional). In this case, a collection has been selected.
* Click the ***Next*** option.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/CowkOftUBi4MYOzR25Ij/image.png" alt=""><figcaption></figcaption></figure>

* The names of the fields get selected from the chosen Collection.
* The user also gets the data for the ***Dimensions***, ***Measures***, and ***Time*** categories. The user can interchange the data categories of dimension, measure, and time value by using the below-given options:

​![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2Fe1T4BPJBGHdkEIQUm7fg%2Fimage.png?alt=media\&token=bf70b76c-8549-4486-b8f4-382159199404)​

* Click the ***Next*** option.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/YHadtBpnC112w83qgl0h/image.png" alt=""><figcaption><p><em><strong>Defining Data by using the Data Type Definition Tab</strong></em></p></figcaption></figure>

* The ***Hierarchy Definition*** tab opens.
* Click the ***Add*** icon provided in the Hierarchy Definition window.
* A new ***Drill Def*** box gets added to the page.
* Drag and drop the dimensions or time options to define a hierarchy.
  * The time dimension creates a hierarchical sequence from the higher to lower time values by default. E.g., **year->month->date** by pulling it once in the ***Drill Def*** boxes.
  * Dimensions have to be manually pulled to create a hierarchy.
* Click the ***Next*** option.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/x96DptrmLrb4dIwBXOCz/image.png" alt=""><figcaption><p><em><strong>Defining hierarchy of data by the Hierarchy Definition tab</strong></em></p></figcaption></figure>

* The ***Data Restrictions*** tab opens. The Data Restriction tab allows the user/user group to access data as per the selected ***User Property*** options.
* Click the **Add** icon to insert new fields for ***Dimension*** and ***User Property***.
* Select a dimension from the drop-down menu to apply filter values to the data store.
* Enter a ***User Property*** to create a filter parameter based on the user.
* Click the ***Finish*** option.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/Js7umoU9ncxVXqqdvQwy/image.png" alt=""><figcaption></figcaption></figure>

* A notification message appears to confirm the configuration of the new Meta Data.
* The newly created ***Meta Data*** gets added to the list displayed on the left pane of the page.

​

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/lHkonZaMuupgWWqqdgEC/image.png" alt=""><figcaption><p><em><strong>The newly created Data Store Meta Data gets added to the Data Store Meta Data list</strong></em></p></figcaption></figure>

## Creation without Mapping to any Existing Collection

The Data Store Metadata can be a structure/index in which the actual data can be stored/written using an application such as Data Pipeline. In this case, there will be user defined structure without actual data in it.

* Navigate to the ***Data Center*** ***Homepage***.
* Click the ***New*** menu.
* Select the ***Data Store Metadata*** option from the ***New*** context menu.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/7cjsGYepguNQz2WmJhoh/image.png" alt=""><figcaption></figcaption></figure>

* A new page asking for the ***Meta Store*** details opens.
* Enter a Data Store Name.
* Choose no ***Collection Name*** from the drop-down list.&#x20;
* Click the ***Next*** option.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/s15D6V8dBWtFm1BqAlDY/image.png" alt=""><figcaption><p><em>Meta Store Details tab</em></p></figcaption></figure>

* Define the data type to insert the field name manually since the **Collection Name** is not chosen.&#x20;
* The users can define the data for the ***Dimensions***, ***Measures***, and ***Time*** categories. The user can even interchange the data categories of dimension, measure, and time value by using the below-given options:
  * Provide a title for Dimensions, Measures, or Time  entities.
  * Use the Add icon to add the defined Dimension, Measure and Time values.

&#x20;     ![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2Fe1T4BPJBGHdkEIQUm7fg%2Fimage.png?alt=media\&token=bf70b76c-8549-4486-b8f4-382159199404)​

* Click the ***Next*** option.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/Q9Dh3KVNOoHy0e5ozc1t/image.png" alt=""><figcaption><p><em><strong>Defining Data by using the Data Type Definition tab</strong></em></p></figcaption></figure>

* The ***Hierarchy Definition*** tab opens.
* Click the ***Add*** icon provided in the Hierarchy Definition window.
* A new ***Drill Def*** box gets added to the page.
* Drag and drop the dimensions or time options to define a hierarchy.
  * The time dimension creates a hierarchical sequence from the higher to lower time values by default. E.g., **year->month->date** by pulling it once in the ***Drill Def*** boxes.
  * Dimensions have to be manually pulled to create a hierarchy.
* Click the ***Next*** option.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/L8N7iDMSC0W3lu2IgzSI/image.png" alt=""><figcaption><p><em><strong>Defining hierarchy of data by the Hierarchy Definition tab</strong></em></p></figcaption></figure>

* The ***Data Restrictions*** tab opens. The Data Restriction tab allows the user/user group to access data as per the selected ***User Property*** options.
* Click the ***Add*** icon to insert a new field to provide ***Dimension*** and ***User Property***.
* Select a dimension from the drop-down menu to apply filter values to the data store.
* Enter a ***User Property*** to create a filter parameter based on the user.
* Click the ***Finish*** option.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/ZVF1mC5z4ONHzYBtTpNh/image.png" alt=""><figcaption><p><em><strong>The Data Restriction tab</strong></em></p></figcaption></figure>

* A notification message appears to confirm the configuration of the new Meta Data.

&#x20;      ![](https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/MRUvGnN9sKVv6NHbYw5g/image.png)

* The newly created ***Meta Data*** gets added to the list displayed on the left pane of the page.

<figure><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/FqzASYnIrKECO1SYLizS/image.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note</mark>:*&#x20;

* *The user can configure the option whether to choose the **MongoDB, ClickHouse,*** or ***Elastic Search** using the **Datastore Settings** configuration section under the **Admin** module.*
* *A created **Data Store Meta Data** lists under the Existing Data Store list while creating a Story selecting which a user can quickly map to the data and start the Story creation.* &#x20;
* *If the user creates a **Data Store Meta Data without mapping it with an existing collection,\*\*\*\*&#x20;**<mark style="color:orange;">**the Data Store Metadata will not contain any data**</mark>. In this circumstances, **the user needs**\*\* **<mark style="color:green;">**to  insert the data using a data pipeline**</mark>** ****or**** **<mark style="color:green;">**add the data manually in the table (in DB)**</mark>** \*\***before going for Story creation** with the same Data Store Meta Data.*
* *The DB used to map or write a new table while creating Data Store Meta Data will always be **the DB configured by the user** in the **Admin** section.*&#x20;
  {% endhint %}

<table data-header-hidden><thead><tr><th width="116.33333333333331"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Option</strong></td><td><strong>Name</strong></td><td><strong>Task</strong></td></tr><tr><td><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/G9tTLMRoxIbUQ6CyrJMp/image.png" alt="" data-size="original"></td><td>Edit</td><td>Redirects the user to edit the Metadata Store fields.</td></tr><tr><td><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/mqkE8UvQBc4nipy1Qyv5/image.png" alt="">​​</td><td>Store Details</td><td>Displays the Store information via a pop-up window.</td></tr><tr><td>​​<img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/Lb6cCAqioL76l5KPTMxa/image.png" alt=""></td><td>Add Synonyms to Metadata Store</td><td>Redirects the user to add synonyms to the selected Metadata store.</td></tr><tr><td><img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/br3PUhc6zTwD4B1svx0f/image.png" alt="" data-size="original"></td><td>Refresh Synonyms</td><td>Refreshes the Synonyms</td></tr><tr><td>​​<img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/b2C6R41YGwt9M994swOG/image.png" alt=""></td><td>Share Metadata Store</td><td>Redirects the user to share the selected Metadata Store to users or user groups.</td></tr><tr><td>​<img src="https://content.gitbook.com/content/TEE47Mdie26Zlpy6Ko2H/blobs/AEhqfJcL95DMxJPGrXq8/image.png" alt="" data-size="original">​</td><td>Remove</td><td>Removes the data store metadata from the list</td></tr></tbody></table>

​
