Skip to content

Creating a relation with CREATE/MERGE is taking a lot of time #3216

Description

@ExtReMLapin

Hello,

Probably related to this old issue (but it was for old engine, here it's new cypher engine) : #3148

Query :

UNWIND $batch as row
MATCH (a),(b) WHERE ID(a) = row.source_id and ID(b) = row.target_id 
MERGE (a)-[r:`in`]->(b)RETURN a, b, r

Batch had to be reduced to 1 because it was tooo slow

{"batch": [{"source_id": "#1:0", "target_id": "#4:0", "features": {}, "relation_type": "in"}]}

Takes something like 4 seconds.

DB dump (not backup button because it's broken) :

NEW_ORANO.zip

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions