From 1630ba80264139f8d9be199e9434165965e06fa2 Mon Sep 17 00:00:00 2001 From: danielle9897 Date: Mon, 31 Jul 2023 12:52:43 +0300 Subject: [PATCH] RDoc-2475 Client API > Session > Querying > Count query results - Part 7 --- ...ow-to-get-query-statistics.dotnet.markdown | 28 +++++++++---------- .../Querying/CountQueryResultsUsingLinq.cs | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Documentation/5.2/Raven.Documentation.Pages/client-api/session/querying/how-to-get-query-statistics.dotnet.markdown b/Documentation/5.2/Raven.Documentation.Pages/client-api/session/querying/how-to-get-query-statistics.dotnet.markdown index c636b74a12..83c455b50d 100644 --- a/Documentation/5.2/Raven.Documentation.Pages/client-api/session/querying/how-to-get-query-statistics.dotnet.markdown +++ b/Documentation/5.2/Raven.Documentation.Pages/client-api/session/querying/how-to-get-query-statistics.dotnet.markdown @@ -34,9 +34,9 @@ from "Employees" where FirstName == "Anne" {CODE syntax_1@ClientApi\Session\Querying\HowToGetQueryStatistics.cs /} -| Parameter | Type | Description | -|------------|-------------------|-------------------------------------------------| -| **stats** | `QueryStatistics` | An 'out' param for getting the query statistics | +| Parameter | Type | Description | +|-----------|-------------------|-------------------------------------------------| +| __stats__ | `QueryStatistics` | An 'out' param for getting the query statistics |
@@ -44,17 +44,17 @@ from "Employees" where FirstName == "Anne" | Property | Type | Description | |----------------------|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **IsStale** | `bool` | Are the results returned by the query potentially stale | -| **DurationInMs** | `long` | Query duration on the server side in Milliseconds | -| **TotalResults** | `int` | The total count of results that matched the query as `Int32`.
Matching query results can also be counted as `Int32` using [Count](../../../client-api/session/querying/how-to-count-query-results#count). | -| **LongTotalResults** | `long` | The total count of the results that matched the query as `Int64`.
Matching query results can also be counted as `Int64` using [LongCount](../../../client-api/session/querying/how-to-count-query-results#longcount). | -| **SkippedResults** | `int` | The number of results skipped by the server.
Learn more in [paging through tampered results](../../../indexes/querying/paging#paging-through-tampered-results). | -| **Timestamp** | `DateTime` | The time when the query results were unstale | -| **IndexName** | `string` | The name of the queried index | -| **DateTime** | `IndexTimestamp` | The timestamp of the queried index | -| **LastQueryTime** | `DateTime` | The timestamp of the last time the index was queried | -| **ResultEtag** | `long?` | Results Etag | -| **NodeTag** | `string` | Tag of the cluster node that responded to the query | +| __IsStale__ | `bool` | Are the results returned by the query potentially stale | +| __DurationInMs__ | `long` | Query duration on the server side in Milliseconds | +| __TotalResults__ | `int` | The total count of results that matched the query as `Int32`.
Matching query results can also be counted as `Int32` using [Count](../../../client-api/session/querying/how-to-count-query-results#count). | +| __LongTotalResults__ | `long` | The total count of the results that matched the query as `Int64`.
Matching query results can also be counted as `Int64` using [LongCount](../../../client-api/session/querying/how-to-count-query-results#longcount). | +| __SkippedResults__ | `int` | The number of results skipped by the server.
Learn more in [paging through tampered results](../../../indexes/querying/paging#paging-through-tampered-results). | +| __Timestamp__ | `DateTime` | The time when the query results were unstale | +| __IndexName__ | `string` | The name of the queried index | +| __IndexTimestamp__ | `IndexTimestamp` | The timestamp of the queried index | +| __LastQueryTime__ | `DateTime` | The timestamp of the last time the index was queried | +| __ResultEtag__ | `long?` | Results Etag | +| __NodeTag__ | `string` | Tag of the cluster node that responded to the query | {PANEL/} diff --git a/Documentation/5.2/Samples/csharp/Raven.Documentation.Samples/ClientApi/Session/Querying/CountQueryResultsUsingLinq.cs b/Documentation/5.2/Samples/csharp/Raven.Documentation.Samples/ClientApi/Session/Querying/CountQueryResultsUsingLinq.cs index 018c9adda1..0517f1edee 100644 --- a/Documentation/5.2/Samples/csharp/Raven.Documentation.Samples/ClientApi/Session/Querying/CountQueryResultsUsingLinq.cs +++ b/Documentation/5.2/Samples/csharp/Raven.Documentation.Samples/ClientApi/Session/Querying/CountQueryResultsUsingLinq.cs @@ -20,7 +20,7 @@ public async Task CountUsingLinq() int numberOfOrders = session .Query() .Where(order => order.ShipTo.Country == "UK") - // Calling 'Count' from System.Linq + // Calling 'Count' from System.Linq .Count(); // The query returns the NUMBER of orders shipped to UK (Int32)