Skip to content

Commit 7475306

Browse files
authored
Merge pull request #104567 from avneet723/patch-2
Updating the upper limits for telemetry and property based queries
2 parents 0f621a9 + afbac3b commit 7475306

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/iot-central/core/howto-query-with-rest-api.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ The following limits apply in the `SELECT` clause:
126126
- There's no wildcard operator.
127127
- You can't have more than 15 items in the select list.
128128
- In a single query, you either select telemetry or properties but not both. A property query can include both reported properties and cloud properties.
129+
- A property-based query will return a maximum of 1,000 records. A telemetry data-based query can return up to 10,000 records.
129130

130131
### Aliases
131132

@@ -171,7 +172,7 @@ Use the `TOP` to limit the number of results the query returns. For example, the
171172
}
172173
```
173174

174-
If you don't use `TOP`, the query returns a maximum of 10,000 results.
175+
If you don't use `TOP`, the query returns a maximum of 10,000 results for a telemetry data-based query and 1,000 for a property-based query.
175176

176177
To sort the results before `TOP` limits the number of results, use [ORDER BY](#order-by-clause).
177178

@@ -236,6 +237,7 @@ The following limits apply in the `WHERE` clause:
236237
- You can use a maximum of 10 operators in a single query.
237238
- In a telemetry query, the `WHERE` clause can only contain telemetry and device metadata filters.
238239
- In a property query, the `WHERE` clause can only contain reported properties, cloud properties, and device metadata filters.
240+
- In a telemetry query, you can retrieve up to 10,000 records. In property query, you can retrieve up to 1,000 records.
239241

240242
## Aggregations and GROUP BY clause
241243

@@ -300,6 +302,8 @@ The current limits for queries are:
300302
- Queries return a maximum of 10,000 records.
301303
- The maximum length of a query string is 350 characters.
302304
- You can't use the wildcard (`*`) in the `SELECT` clause list.
305+
- Telemetry-based query can retrieve up to 10,000 records.
306+
- Property-based query can retrieve up to 1,000 records.
303307

304308
## Next steps
305309

0 commit comments

Comments
 (0)