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
@@ -50,7 +50,7 @@ First, you'll create a database and container in the existing API for NoSQL acco
50
50
51
51
:::image type="content" source="media/tutorial-dotnet-web-app/resource-menu-keys.png" lightbox="media/tutorial-dotnet-web-app/resource-menu-keys.png" alt-text="Screenshot of an API for NoSQL account page. The Keys option is highlighted in the resource menu.":::
52
52
53
-
1. On the **Keys** page, observe and record the value of the **URI**, **PRIMARY KEY**, and **PRIMARY CONNECTION STRING***fields. These values will be used throughout the tutorial.
53
+
1. On the **Keys** page, observe and record the value of the **PRIMARY CONNECTION STRING***field. This value will be used throughout the tutorial.
54
54
55
55
:::image type="content" source="media/tutorial-dotnet-web-app/page-keys.png" alt-text="Screenshot of the Keys page with the URI, Primary Key, and Primary Connection String fields highlighted.":::
56
56
@@ -70,12 +70,12 @@ First, you'll create a database and container in the existing API for NoSQL acco
70
70
|**Database throughput type**|**Manual**|
71
71
|**Database throughput amount**|`1000`|
72
72
|**Container id**|`products`|
73
-
|**Partition key**|`/categoryId`|
73
+
|**Partition key**|`/category/name`|
74
74
75
75
:::image type="content" source="media/tutorial-dotnet-web-app/dialog-new-container.png" alt-text="Screenshot of the New Container dialog in the Data Explorer with various values in each field.":::
76
76
77
77
> [!IMPORTANT]
78
-
> In this tutorial, we will first scale the database up to 4,000 RU/s in shared throughput to maximize performance for the data migration. Once the data migration is complete, we will scale down to 400 RU/s of provisioned throughput.
78
+
> In this tutorial, we will first scale the database up to 1,000 RU/s in shared throughput to maximize performance for the data migration. Once the data migration is complete, we will scale down to 400 RU/s of provisioned throughput.
79
79
80
80
1. Select **OK** to create the database and container.
81
81
@@ -84,36 +84,41 @@ First, you'll create a database and container in the existing API for NoSQL acco
84
84
> [!TIP]
85
85
> You can optionally use the Azure Cloud Shell here.
86
86
87
-
1. Install a **pre-release**version of the `cosmicworks` dotnet tool from NuGet.
87
+
1. Install **v2** of the `cosmicworks` dotnet tool from NuGet.
1. Use the `cosmicworks` tool to populate your API forNoSQL account with sample product data using the **URI** and **PRIMARY KEY** values you recorded earlierin this lab. Those recorded values will be used for the `endpoint` and `key` parameters respectively.
94
94
95
95
```bash
96
96
cosmicworks \
97
-
--datasets product \
98
-
--endpoint <uri> \
99
-
--key <primary-key>
97
+
--number-of-products 1759 \
98
+
--number-of-employees 0 \
99
+
--disable-hierarchical-partition-keys \
100
+
--connection-string <nosql-connection-string>
100
101
```
101
102
102
-
1. Observe the output from the command line tool. It should add more than 200 items to the container. The example output included is truncated for brevity.
103
+
1. Observe the output from the command line tool. It should add 1759 items to the container. The example output included is truncated for brevity.
1. Return to the **Data Explorer** page for your account.
@@ -173,29 +178,33 @@ First, you'll create a database and container in the existing API for NoSQL acco
173
178
174
179
```sql
175
180
SELECT
176
-
p.name,
177
-
p.categoryName,
178
-
p.tags
181
+
p.name,
182
+
p.category.name AS category,
183
+
p.category.subCategory.name AS subcategory,
184
+
p.tags
179
185
FROM products p
180
-
JOIN t IN p.tags
181
-
WHERE t.name = "Tag-32"
186
+
JOIN tag IN p.tags
187
+
WHERE STRINGEQUALS(tag, "yellow", true)
182
188
```
183
189
184
190
1. The results should be a smaller array of items filtered to only contain items that include at least one tag with a **name** value of `Tag-32`. Again, a subset of the output is included here for brevity.
0 commit comments