Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 304f2c2

Browse files
clarify complexity limits (#872)
* clarify complexity limits * Update fundamentals-limitations.md * Update fundamentals-limitations.md * Update release-notes-new-features39.md * Update release-notes-upgrading-changes39.md Co-authored-by: ansoboleva <93702078+ansoboleva@users.noreply.github.com>
1 parent 59c399a commit 304f2c2

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

3.10/aql/fundamentals-limitations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ The following hard-coded limitations exist for AQL queries:
1212
internal/anonymous query variables, e.g. for intermediate results.
1313
Subqueries also require result registers.
1414
- An AQL query cannot have more than _4000_ execution nodes in its initial
15-
query execution plan.
15+
query execution plan. This number includes all execution nodes of the
16+
initial execution plan, even if some of them could be
17+
optimized away later by the query optimizer during plan optimization.
1618
- An AQL query cannot use more than _2048_ collections/shards.
1719
- Expressions in AQL queries cannot have a nesting of more than _500_ levels.
1820
As an example, the expression `1 + 2 + 3 + 4` is 3 levels deep

3.9/aql/fundamentals-limitations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ The following hard-coded limitations exist for AQL queries:
1212
internal/anonymous query variables, e.g. for intermediate results.
1313
Subqueries also require result registers.
1414
- An AQL query cannot have more than _4000_ execution nodes in its initial
15-
query execution plan.
15+
query execution plan. This number includes all execution nodes of the
16+
initial execution plan, even if some of them could be
17+
optimized away later by the query optimizer during plan optimization.
1618
- An AQL query cannot use more than _2048_ collections/shards.
1719
- Expressions in AQL queries cannot have a nesting of more than _500_ levels.
1820
As an example, the expression `1 + 2 + 3 + 4` is 3 levels deep

3.9/release-notes-new-features39.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,13 @@ The following limits have been introduced:
297297
The expression recursion is limited to 500 levels.
298298
- a limit for the number of execution nodes in the initial query
299299
execution plan.
300-
The number of execution nodes is limited to 4,000.
300+
The number of execution nodes in the initial query execution plan is
301+
limited to 4000. This number includes all execution nodes of the
302+
initial execution plan, even if some of them could be
303+
optimized away later by the query optimizer during plan optimization.
304+
305+
AQL queries that violate these limits will fail to run, and instead abort
306+
with error `1524` ("too much nesting or too many objects") during setup.
301307

302308
### RocksDB block cache control
303309

3.9/release-notes-upgrading-changes39.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ The following limits have been added:
7474
is 3 levels deep `1 + (2 + (3 + 4))`.
7575
The recursion of expressions is limited to 500 levels.
7676
- a limit for the number of execution nodes in the initial query
77-
execution plan. The number of execution nodes is limited to 4,000.
77+
execution plan. The number of execution nodes is limited to 4000.
78+
This number includes all execution nodes of the initial execution plan,
79+
even if some of them could be optimized away later by the
80+
query optimizer during plan optimization.
81+
82+
AQL queries that violate these limits will fail to run, and instead abort
83+
with error `1524` ("too much nesting or too many objects") during setup.
7884

7985
Also see [Known limitations for AQL queries](aql/fundamentals-limitations.html).
8086

0 commit comments

Comments
 (0)