Skip to content

Commit

Permalink
RDoc-2475 Client API > Session > Querying > Count query results - Part 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielle9897 committed Jul 31, 2023
1 parent e90000d commit 1630ba8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ 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 |

<br>

{CODE syntax_2@ClientApi\Session\Querying\HowToGetQueryStatistics.cs /}

| 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`.<br>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`.<br>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.<br>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`.<br>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`.<br>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.<br>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/}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public async Task CountUsingLinq()
int numberOfOrders = session
.Query<Order>()
.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)
Expand Down

0 comments on commit 1630ba8

Please sign in to comment.