Skip to content

Commit 1eab4f0

Browse files
committed
minor formatting fixes
1 parent d342846 commit 1eab4f0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

learn-pr/wwl-data-ai/configure-azure-cosmos-db-sql-api-sdk/includes/4-implement-threading-parallelism.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Avoid blocking asynchronous execution by improperly using `.then()` or `.catch()
261261

262262
The JavaScript SDK includes built-in iterators to retrieve query results efficiently without blocking other operations. Avoid eagerly collecting all query results, as it can consume a large amount of memory and block other operations.
263263

264-
### Inefficient example:
264+
### Inefficient example
265265

266266
```javascript
267267
const results = await container.items
@@ -270,7 +270,7 @@ const results = await container.items
270270
console.log(results.resources);
271271
```
272272

273-
### Efficient example using an iterator:
273+
### Efficient example using an iterator
274274

275275
```javascript
276276
const iterator = container.items.query(

learn-pr/wwl-data-ai/configure-azure-cosmos-db-sql-api-sdk/includes/5-configure-logging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,14 @@ Logging can be enabled either through an environment variable or programmaticall
304304

305305
Set the `AZURE_LOG_LEVEL` environment variable before starting your application.
306306

307-
#### On macOS/Linux:
307+
#### On macOS/Linux
308308

309309
```bash
310310
export AZURE_LOG_LEVEL=info
311311
node your-app.js
312312
```
313313

314-
#### On Windows:
314+
#### On Windows
315315

316316
```cmd
317317
set AZURE_LOG_LEVEL=info

learn-pr/wwl-data-ai/perform-cross-document-transactional-operations-azure-cosmos-db-sql-api/includes/5-implement-optimistic-concurrency-control.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ await container.UpsertItemAsync<Product>(product, partitionKey);
1717

1818
Since read and write in this example are distinct operations, there's a latency between these operations. This latency is represented in this diagram as *n*.
1919

20-
![N latency between read and update](../media/5-latency.png)
20+
![Diagram of the N latency between read and update.](../media/5-latency.png)
2121

2222
This latency can be as short as milliseconds or seconds in computer code but could still be catastrophic enough to lose potential updates. Some user-facing applications, where user input causes a longer latency between a read and update operation, can cause a longer *n* value and a higher potential for lost updates. This issue can be resolved by implementing **optimistic concurrency control**.
2323

@@ -82,7 +82,7 @@ container.upsert_item(body=product)
8282

8383
Since read and write in this example are distinct operations, there's a latency between these operations. This latency is represented in this diagram as *n*.
8484

85-
![N latency between read and update](../media/5-latency.png)
85+
![Diagram of the N latency between read and update.](../media/5-latency.png)
8686

8787
This latency can be as short as milliseconds or seconds in computer code but could still be catastrophic enough to lose potential updates. Some user-facing applications, where user input causes a longer latency between a read and update operation, can cause a longer *n* value and a higher potential for lost updates. This issue can be resolved by implementing **optimistic concurrency control**.
8888

@@ -156,7 +156,7 @@ await container.items.upsert(product);
156156

157157
Since read and write in this example are distinct operations, there's a latency between these operations. This latency is represented in this diagram as *n*.
158158

159-
![N latency between read and update](../media/5-latency.png)
159+
![Diagram of the N latency between read and update.](../media/5-latency.png)
160160

161161
This latency can be as short as milliseconds or seconds in computer code but could still be catastrophic enough to lose potential updates. Some user-facing applications, where user input causes a longer latency between a read and update operation, can cause a longer *n* value and a higher potential for lost updates. This issue can be resolved by implementing **optimistic concurrency control**.
162162

0 commit comments

Comments
 (0)