# Data modeling

## Data modeling in Azure Cosmos DB <a href="#data-modeling-in-azure-cosmos-db" id="data-modeling-in-azure-cosmos-db"></a>

While schema-free databases, like Azure Cosmos DB, make it super easy to store and query unstructured and semi-structured data, you should **spend some time thinking about your data model** to get the most of the service in terms of performance and scalability and lowest cost.

How is data going to be stored? How is your application going to retrieve and query data? Is your application read-heavy, or **write-heavy**?

Next, let us see some of the modelling choices we have to store our data in Cosmos DB.


---

# 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://raviram.gitbook.io/cosmosdb/data-modeling.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.
