Skip to content

Commit ff3e5fb

Browse files
Alter query so that LockingMerge shows up again
1 parent cd271ca commit ff3e5fb

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

modules/ROOT/pages/planning-and-tuning/operators/operators-detail.adoc

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6022,7 +6022,7 @@ The `LockingMerge` operator is similar to the xref:planning-and-tuning/operators
60226022
----
60236023
PROFILE
60246024
MATCH (s:Person {name: 'me'})
6025-
MERGE (s)-[:FRIENDS_WITH]->(s)
6025+
MERGE (s)-[:FRIENDS_WITH]->(:Person {name: 'you'})
60266026
----
60276027
60286028
.Query Plan
@@ -6036,25 +6036,25 @@ Runtime version {neo4j-version}
60366036
60376037
Batch size 128
60386038
6039-
+--------------------+----+-------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------------+----------------------+
6040-
| Operator | Id | Details | Estimated Rows | Rows | DB Hits | Memory (Bytes) | Page Cache Hits/Misses | Time (ms) | Pipeline | Indexes Used |
6041-
+--------------------+----+-------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------------+----------------------+
6042-
| +ProduceResults | 0 | | 0 | 0 | 0 | | | | | |
6043-
| | +----+-------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6044-
| +EmptyResult | 1 | | 0 | 0 | 0 | | | | | |
6045-
| | +----+-------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6046-
| +Apply | 2 | | 0 | 0 | 0 | | | | | |
6047-
| |\ +----+-------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6048-
| | +ArgumentTracker | 6 | | 0 | 0 | 0 | 696 | | | | |
6049-
| | | +----+-------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6050-
| | +MergeInto | 3 | MERGE (s)-[anon_0:FRIENDS_WITH]->(s) | 0 | 0 | 0 | | | | | |
6051-
| | | +----+-------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6052-
| | +Argument | 4 | s | 0 | 0 | 0 | 128 | 0/0 | 0.000 | Fused in Pipeline 1 | |
6053-
| | +----+-------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------------+----------------------+
6054-
| +NodeIndexSeek | 5 | RANGE INDEX s:Person(name) WHERE name = $autostring_0 | 0 | 0 | 1 | 376 | 1/0 | 0.257 | In Pipeline 0 | range_person_name: 1 |
6055-
+--------------------+----+-------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------------+----------------------+
6039+
+------------------+----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------------+----------------------+
6040+
| Operator | Id | Details | Estimated Rows | Rows | DB Hits | Memory (Bytes) | Page Cache Hits/Misses | Time (ms) | Pipeline | Indexes Used |
6041+
+------------------+----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------------+----------------------+
6042+
| +ProduceResults | 0 | | 0 | 0 | 0 | | | | | |
6043+
| | +----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6044+
| +EmptyResult | 1 | | 0 | 0 | 0 | | | | | |
6045+
| | +----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6046+
| +Apply | 2 | | 0 | 0 | 0 | | | | | |
6047+
| |\ +----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6048+
| | +LockingMerge | 3 | CREATE (anon_1:Person {name: $autostring_1}), (s)-[anon_0:FRIENDS_WITH]->(anon_1), LOCK(s) | 0 | 0 | 0 | | | | | |
6049+
| | | +----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6050+
| | +Expand(Into) | 4 | (s)-[anon_0:FRIENDS_WITH]->(anon_1) | 0 | 0 | 0 | | | | | |
6051+
| | | +----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+ | | +----------------------+
6052+
| | +NodeIndexSeek | 5 | RANGE INDEX anon_1:Person(name) WHERE name = $autostring_1 | 0 | 0 | 0 | 128 | 0/0 | 0.000 | Fused in Pipeline 1 | |
6053+
| | +----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------------+----------------------+
6054+
| +NodeIndexSeek | 6 | RANGE INDEX s:Person(name) WHERE name = $autostring_0 | 0 | 0 | 1 | 376 | 1/0 | 0.186 | In Pipeline 0 | range_person_name: 1 |
6055+
+------------------+----+--------------------------------------------------------------------------------------------+----------------+------+---------+----------------+------------------------+-----------+---------------------+----------------------+
60566056
6057-
Total database accesses: 1, total allocated memory: 1280
6057+
Total database accesses: 1, total allocated memory: 584
60586058
----
60596059
60606060
======
@@ -7297,4 +7297,4 @@ Runtime version {neo4j-version}
72977297
Total database accesses: 0, total allocated memory: 64
72987298
----
72997299
7300-
======
7300+
======

0 commit comments

Comments
 (0)