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

Commit 50311a7

Browse files
nerpaulamchackiansoboleva
authored
DOC-142/traversal-projections (#1078)
* traversal projections * fixed a broken link * Update 3.10/aql/graphs-traversals.md Co-authored-by: Michael Hackstein <michael@arangodb.com> * hint box formatting * added EE note * Update operations-for.md Co-authored-by: Michael Hackstein <michael@arangodb.com> Co-authored-by: ansoboleva <93702078+ansoboleva@users.noreply.github.com>
1 parent 2aba280 commit 50311a7

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

3.10/aql/graphs-traversals.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ FOR vertex[, edge[, path]]
134134
case when a nested traversal is fed with several tens of thousands of start
135135
vertices, which can then be distributed randomly to worker threads for parallel
136136
execution.
137-
138137
{% include hint-ee.md feature="Traversal parallelization" plural=false %}
138+
- **maxProjections** (number, *optional*): Specifies the number of document
139+
attributes per FOR loop to be used as projections. The default value is `5`.
140+
{% include hint-ee.md feature="Traversal projections" plural=true %}
139141
- **weightAttribute** (string, *optional*): Specifies the name of an attribute
140142
that is used to look up the weight of an edge. If no attribute is specified
141143
or if it is not present in the edge document then the `defaultWeight` is used.

3.10/aql/operations-for.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ there are a few corner cases where it can make sense:
196196
projections, if the cost of projections is higher than doing copies of the
197197
full documents. This can be the case for very small documents.
198198

199+
{% hint 'info' %}
200+
Starting with version 3.10, `maxProjections` can be used in
201+
[Graph Traversals](graphs-traversals.html#working-with-named-graphs) (Enterprise Edition only).
202+
{% endhint %}
203+
199204
### `useCache`
200205

201206
<small>Introduced in: v3.10.0</small>

3.10/release-notes-new-features310.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ geo indexes need to be dropped and recreated after an upgrade.
109109
See [Legacy Polygons](indexing-geo.html#legacy-polygons) for
110110
details and for hints about upgrading to version 3.10 or later.
111111

112+
### Traversal Projections (Enterprise Edition)
113+
114+
Starting with version 3.10, you can use projections in graph traversals to
115+
follow edges connected to a start vertex, up to a variable depth.
116+
117+
The `maxProjections` is now introduced as an option when
118+
[working with named graphs](aql/graphs-traversals.html#working-with-named-graphs).
119+
120+
See also [how to use `maxProjections` with FOR loops](aql/operations-for.html#maxprojections).
121+
112122
### Number of filtered documents in profiling output
113123

114124
The AQL query profiling output now shows the number of filtered inputs for each execution node

0 commit comments

Comments
 (0)