Skip to content

Commit 14573b0

Browse files
constraint example
1 parent a06e2f5 commit 14573b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/ROOT/pages/patterns/shortest-paths.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ As a result, the simpler shortest path query (without a `CALL` subquery) will no
690690
----
691691
PROFILE
692692
MATCH p = ANY SHORTEST
693-
(source:N {trail: ["C", "C", "A", "C", "A", "B", "B", "B", "A"]})--+
693+
(source:N {trail: ["C", "C", "A", "C", "A", "B", "B", "B", "A"]})--{2,}
694694
(target:N {trail: ["A", "B", "C", "A", "B", "C", "A", "B", "C"]})
695695
RETURN length(p) AS pathLength
696696
----
@@ -701,13 +701,13 @@ RETURN length(p) AS pathLength
701701
+------------------------------------+----+----------------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------+
702702
| Operator | Id | Details | Estimated Rows | Rows | DB Hits | Memory (Bytes) | Page Cache Hits/Misses | Time (ms) | Pipeline |
703703
+------------------------------------+----+----------------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------+
704-
| +ProduceResults | 0 | `length(p)` | 1 | 1 | 0 | 0 | 0/0 | 0.034 | |
704+
| +ProduceResults | 0 | pathLength | 1 | 1 | 0 | 0 | 0/0 | 0.104 | |
705705
| | +----+----------------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+ |
706-
| +Projection | 1 | length((source)-[anon_19*]-(target)) AS `length(p)` | 1 | 1 | 17 | | 9/0 | 0.057 | |
706+
| +Projection | 1 | length((source)-[anon_23*]-(target)) AS pathLength | 1 | 1 | 17 | | 9/0 | 0.133 | |
707707
| | +----+----------------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+ |
708-
| +StatefulShortestPath(Into, Trail) | 2 | SHORTEST 1 (source) ((`anon_15`)-[`anon_16`]-(`anon_17`)){1, } (target) | 1 | 1 | 1936 | 990288 | 205/0 | 1.658 | In Pipeline 1 |
708+
| +StatefulShortestPath(Into, Trail) | 2 | SHORTEST 1 (source) ((`anon_19`)-[`anon_20`]-(`anon_21`)){2, } (target) | 1 | 1 | 1952 | 1337584 | 209/0 | 2.274 | In Pipeline 1 |
709709
| | +----+----------------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------+
710-
| +MultiNodeIndexSeek | 3 | UNIQUE source:N(trail) WHERE trail = $autolist_0, UNIQUE target:N(trail) WHERE trail = $autolist_1 | 1 | 1 | 4 | 376 | 4/2 | 0.332 | In Pipeline 0 |
710+
| +MultiNodeIndexSeek | 3 | UNIQUE source:N(trail) WHERE trail = $autolist_0, UNIQUE target:N(trail) WHERE trail = $autolist_1 | 1 | 1 | 4 | 376 | 1/5 | 3.688 | In Pipeline 0 |
711711
+------------------------------------+----+----------------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------+
712712
713713
Total database accesses: 1957, total allocated memory: 990608

0 commit comments

Comments
 (0)