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

Commit 6e566aa

Browse files
committed
1 parent f7d6280 commit 6e566aa

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

3.9/aql/extending-conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ purely functional and thus free of side effects and state, and state modificatio
3737

3838
{% hint 'warning' %}
3939
Modification of global variables is unsupported, as is reading or changing
40-
the data of any collection from inside an AQL user function.
40+
the data of any collection or running queries from inside an AQL user function.
4141
{% endhint %}
4242

4343
User function code is late-bound, and may thus not rely on any variables

3.9/aql/extending.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ To overcome these mentioned limitations, you may want to increase the
5959
(at the expense of increased memory usage), and the
6060
[number of available server threads](../programs-arangod-server.html#server-threads).
6161

62+
In addition, modification of global JavaScript variables from inside UDFs is
63+
unsupported, as is reading or changing the data of any collection or running queries
64+
from inside an AQL user function.
65+
6266
### Deployment Details
6367

6468
Internally, UDFs are stored in a system collection named `_aqlfunctions`

3.9/aql/fundamentals-limitations.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The following limitations are known for AQL queries:
1010
- An AQL query cannot use more than _1000_ result registers.
1111
One result register is needed for every named query variable and for
1212
internal/anonymous query variables.
13+
- An AQL query cannot have more than _4000_ execution nodes in its initial
14+
query execution plan.
1315
- An AQL query cannot use more than _2048_ collections/shards.
1416
- It is not possible to use a collection in a read operation after
1517
it was used for a write operation in the same AQL query.
@@ -18,6 +20,9 @@ The following limitations are known for AQL queries:
1820
[`DOCUMENT()` function](functions-miscellaneous.html#document) or
1921
[traversals working with collection sets](graphs-traversals.html#working-with-collection-sets)
2022
(instead of named graphs).
23+
- Expressions in AQL queries cannot have a nesting of more than 1000
24+
levels. For example, the expression `1 + 2 + 3 + 4`, which
25+
is 3 levels deep (because it is executed as `1 + (2 + (3 + 4))`).
2126
- Subqueries that are used inside expressions are pulled out of these
2227
expressions and executed beforehand. That means that subqueries do not
2328
participate in lazy evaluation of operands, for example in the

0 commit comments

Comments
 (0)