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/migrate-containers-partitioned-to-nonpartitioned.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to migrate all the existing non-partitioned containers in
4
4
author: markjbrown
5
5
ms.service: cosmos-db
6
6
ms.topic: conceptual
7
-
ms.date: 05/23/2019
7
+
ms.date: 09/25/2019
8
8
ms.author: mjbrown
9
9
---
10
10
@@ -14,12 +14,12 @@ Azure Cosmos DB supports creating containers without a partition key. Currently
14
14
15
15
The non-partitioned containers are legacy and you should migrate your existing non-partitioned containers to partitioned containers to scale storage and throughput. Azure Cosmos DB provides a system defined mechanism to migrate your non-partitioned containers to partitioned containers. This document explains how all the existing non-partitioned containers are auto-migrated into partitioned containers. You can take advantage of the auto-migration feature only if you are using the V3 version of SDKs in all the languages.
16
16
17
-
> [!NOTE]
18
-
> Currently, you cannot migrate Azure Cosmos DB MongoDB and Gremlin API accounts by using the steps described in this document.
17
+
> [!NOTE]
18
+
> Currently, you cannot migrate Azure Cosmos DB MongoDB and Gremlin API accounts by using the steps described in this document.
19
19
20
20
## Migrate container using the system defined partition key
21
21
22
-
To support the migration, Azure Cosmos DB defines a system defined partition key named `/_partitionkey` on all the containers that don’t have a partition key. You cannot change the partition key definition after the containers are migrated. For example, the definition of a container that is migrated to a partitioned container will be as follows:
22
+
To support the migration, Azure Cosmos DB provides a system defined partition key named `/_partitionkey` on all the containers that don’t have a partition key. You cannot change the partition key definition after the containers are migrated. For example, the definition of a container that is migrated to a partitioned container will be as follows:
23
23
24
24
```json
25
25
{
@@ -32,10 +32,10 @@ To support the migration, Azure Cosmos DB defines a system defined partition key
32
32
},
33
33
}
34
34
```
35
-
36
-
After the container is migrated, you can create documents by populating the `_partitionKey` property along with the other properties of the document. The `_partitionKey` property represents the partition key of your documents.
37
35
38
-
Choosing the right partition key is important to utilize the provisioned throughput optimally. For more information, see [how to choose a partition key](partitioning-overview.md) article.
36
+
After the container is migrated, you can create documents by populating the `_partitionKey` property along with the other properties of the document. The `_partitionKey` property represents the partition key of your documents.
37
+
38
+
Choosing the right partition key is important to utilize the provisioned throughput optimally. For more information, see [how to choose a partition key](partitioning-overview.md) article.
39
39
40
40
> [!NOTE]
41
41
> You can take advantage of system defined partition key only if you are using the latest/V3 version of SDKs in all the languages.
@@ -60,37 +60,37 @@ public class DeviceInformationItem
Copy file name to clipboardExpand all lines: articles/cosmos-db/working-with-dates.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ ms.service: cosmos-db
5
5
author: SnehaGunda
6
6
ms.author: sngun
7
7
ms.topic: conceptual
8
-
ms.date: 07/23/2019
8
+
ms.date: 09/25/2019
9
9
---
10
10
# Working with Dates in Azure Cosmos DB
11
11
Azure Cosmos DB delivers schema flexibility and rich indexing via a native [JSON](https://www.json.org) data model. All Azure Cosmos DB resources including databases, containers, documents, and stored procedures are modeled and stored as JSON documents. As a requirement for being portable, JSON (and Azure Cosmos DB) supports only a small set of basic types: String, Number, Boolean, Array, Object, and Null. However, JSON is flexible and allow developers and frameworks to represent more complex types using these primitives and composing them as objects or arrays.
0 commit comments