Skip to content

Commit ace2f3b

Browse files
committed
update formatting and summary
1 parent 0cb48ff commit ace2f3b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

articles/cosmos-db/nosql/query-metrics-performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ServerSideCumulativeMetrics metrics = feedResponse.Diagnostics.GetQueryMetrics()
6161
ServerSideMetrics cumulativeMetrics = metrics.CumulativeMetrics;
6262
```
6363

64-
You can also aggregate these metrics across all round trips for the query. The following is an example of how to aggregate query execution time across all round trips for a given query using LINQ.
64+
You can also aggregate these metrics across all round trips for the query. The following is an example of how to aggregate query execution time across all round trips for a given query using LINQ:
6565

6666
```csharp
6767
QueryDefinition query = new QueryDefinition("SELECT TOP 5 * FROM c");
@@ -95,7 +95,7 @@ ServerSideCumulativeMetrics metrics = feedResponse.Diagnostics.GetQueryMetrics()
9595
List<ServerSidePartitionedMetrics> partitionedMetrics = metrics.PartitionedMetrics;
9696
```
9797

98-
When accumulated over all round trips, per partition metrics allow you to see if a specific partition is causing performance issues when compared to others. The following is an example of how to group partition metrics for each trip using LINQ.
98+
When accumulated over all round trips, per partition metrics allow you to see if a specific partition is causing performance issues when compared to others. The following is an example of how to group partition metrics for each trip using LINQ:
9999

100100
```csharp
101101
QueryDefinition query = new QueryDefinition("SELECT TOP 5 * FROM c");

articles/cosmos-db/nosql/query-metrics.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ ms.custom: devx-track-csharp, ignite-2022
1717
Azure Cosmos DB provides a [API for NoSQL for querying data](query/getting-started.md), without requiring schema or secondary indexes. This article provides the following information for developers:
1818

1919
* High-level details on how Azure Cosmos DB's SQL query execution works
20-
* Details on query request and response headers, and client SDK options
2120
* Tips and best practices for query performance
22-
* Examples of how to utilize SQL execution statistics to debug query performance
21+
* Examples of how to utilize SQL query execution metrics to debug query performance
2322

2423
## About SQL query execution
2524

0 commit comments

Comments
 (0)