# Partition Key in Cosmos DB

say it: **“par-TISH-un KEE in KOZ-mohs DEE-BEE”** **/pɑrˈtɪʃən kiː ɪn ˈkɑzmoʊs ˌdiˈbi/**

The item property that decides where data lives; set once.

## What is **Partition Key in Cosmos DB**?

The **partition key** (like `/customerId`) decides where items are stored. Queries that include it are fast and cheap; it can't be changed after the container is created.

Level: Apprentice · [More Cosmos DB terms at this level](https://www.ask-codey.com/glossary?category=cosmos-db&level=2)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/partition-key-in-cosmos-db
