You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/resource-model.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ In Azure Cosmos DB, a database is similar to a namespace. A database is simply a
57
57
58
58
An Azure Cosmos DB container is where data is stored. Unlike most relational databases, which scale up with larger sizes of virtual machines, Azure Cosmos DB scales out.
59
59
60
-
Data is stored on one or more servers called *partitions*. To increase throughput or storage, you add more partitions. This relationship provides a virtually unlimited amount of throughput and storage for a container.
60
+
Data is stored on one or more servers called *partitions*. To increase partitions, you increase throughput, or they grow automatically as storage increases. This relationship provides a virtually unlimited amount of throughput and storage for a container.
61
61
62
62
When you create a container, you need to supply a partition key. The partition key is a property that you select from your items to help Azure Cosmos DB distribute the data efficiently across partitions. Azure Cosmos DB uses the value of this property to route data to the appropriate partition to be written, updated, or deleted. You can also use the partition key in the `WHERE` clause in queries for efficient data retrieval.
63
63
@@ -75,7 +75,7 @@ When you create a container, you configure throughput in one of the following mo
75
75
> [!NOTE]
76
76
> You can't switch between dedicated and shared throughput. Containers that you created in a shared throughput database can't be updated to have dedicated throughput. To change a container from shared to dedicated throughput, you must create a new container and copy data to it.
77
77
78
-
Containers are schema agnostic. Items within a container can have arbitrary schemas or different entities, as long as they share the same partition key. For example, an item that represents a customer and one or more items that represent all their orderscan be placed in the *same container*.
78
+
Containers are schema agnostic. Items within a container can have arbitrary schemas or different entities, as long as they share the same partition key. For example, a container can contain an item or document that has customer profile information, along with one or more items or documents that represent all of the customer's sales orders. You can put similar information for all customers in the *same container*.
79
79
80
80
By default, all data that you add to a container is automatically indexed without requiring explicit indexing. You can customize the indexing for a container by configuring its [indexing policy](index-overview.md).
81
81
@@ -85,7 +85,7 @@ Azure Cosmos DB provides a built-in capability for change data capture called [c
85
85
86
86
You can register [stored procedures, triggers, user-defined functions (UDFs)](stored-procedures-triggers-udfs.md), and [merge procedures](how-to-manage-conflicts.md) for your container.
87
87
88
-
Data within a container must have a unique `id` property value for each logical partition key's value. This property can be useful when you want to have a unique constraint within your container.
88
+
Each document within a container must have an `id` property that's unique within a logical key's property value for that container. You can use this combination of properties to provide a unique constraint within a container, without having to explicitly define one.
89
89
90
90
You can also specify a [unique key constraint](unique-keys.md) on your Azure Cosmos DB container that uses one or more properties. A unique key constraint ensures the uniqueness of one or more values per logical partition key. If you create a container by using a unique key policy, you can't create any new or updated items with values that duplicate the values that the unique key constraint specifies.
91
91
@@ -137,7 +137,7 @@ Every Azure Cosmos DB item has the following system-defined properties. Dependin
137
137
|Arbitrary user-defined properties | User defined | User-defined properties in API-native representation (including JSON, BSON, and CQL) | Yes | Yes | Yes | Yes | Yes |
138
138
139
139
> [!NOTE]
140
-
> Uniqueness of the `id` property is enforced within each logical partition. Multiple documents can have the same `id` property with different partition key values.
140
+
> Uniqueness of the `id` property is enforced within each logical partition. Multiple documents can have the same `id` property value with different partition key values.
0 commit comments