GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Unwind edge creation infinite time/super slow · Issue #1713 · ArcadeData/arcadedb Closed DescriptionHello ArcadeDB Version:
OS and JDK Version:
Expected behaviorNon slow/infinite time request Actual behaviorWell the query is slow as hell Steps to reproduceBefore the release of our tool we're doing "fuzzing" or just trying absurd quantity of thing with absurd quantity of data. We realized we need to optimize our queries by not creating one edge by one edge and batching it. Issue is that ... it's not helping. Creating 5 edges (batches with UNWIND in Cypher) is ... stuck Attached database : Query ran in Postman. URL: Body : {
"command": " UNWIND $batch as row\n MATCH (a), (b)\n WHERE ID(a) = row.source_id AND ID(b) = row.target_id\n CREATE (a)-[r:RELATION {relation_type: row.relation_type}]->(b)\n SET r.similarity = row.features.similarity RETURN a, b, r\n",
"language": "cypher",
"params": {
"batch": [
{
"source_id": "#22:8200",
"target_id": "#1:0",
"relation_type": "smiliar",
"features": {
"similarity": 1
}
},
{
"source_id": "#22:8200",
"target_id": "#7:8198",
"relation_type": "smiliar",
"features": {
"similarity": 1
}
},
{
"source_id": "#22:8200",
"target_id": "#10:8199",
"relation_type": "smiliar",
"features": {
"similarity": 1
}
},
{
"source_id": "#22:8200",
"target_id": "#13:8199",
"relation_type": "smiliar",
"features": {
"similarity": 1
}
},
{
"source_id": "#22:8200",
"target_id": "#16:8199",
"relation_type": "smiliar",
"features": {
"similarity": 1
}
},
{
"source_id": "#22:8200",
"target_id": "#19:8199",
"relation_type": "smiliar",
"features": {
"similarity": 1
}
}
]
}
}Multi line cypher query is : UNWIND $batch as row MATCH (a), (b) WHERE ID(a) = row.source_id AND ID(b) = row.target_id CREATE (a)-[r:RELATION {relation_type: row.relation_type}]->(b) SET r.similarity = row.features.similarity RETURN a, b, r Editing the query to make batch list empty fixes the issue. Activity
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |