Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-02-2020 12:12 PM
I have the simplest cypher ever:
MATCH(n)
RETURN n
But this cypher returns 1 million data and it takes too long (sometimes it doesn't even finish, the app just crashes). I read that I can use apoc.cypher.parallel
for better performance but it throws an error and I can't use it. After running apoc.cypher.parallel("MATCH(n) RETURN n")
I get the error:
Invalid input 'p': expected 'l/L' (line 1, column 2 (offset: 1))
"apoc.cypher.parallel("MATCH(n) RETURN n")"
^
Is there a way to fix this error or more importantly, is there a way to parallelise the query on the other way?
07-02-2020 12:41 PM
Hi @anthino12,
May I ask what is it that you want to achieve? MATCH (n) RETURN n is going to return all the data you have in your graph.
07-02-2020 12:50 PM
Correct. The data I'm trying to return is very big (approx. 1 million of nodes) and I can't return it. The app crashes so I assume that having it parallelised, I can have the data faster(?)
07-02-2020 01:07 PM
I see, and by app you mean Neo4j Browser?
07-03-2020 12:00 AM
Hello @anthino12
I think there is a syntax error, you must add a CALL
front of your cypher request:
CALL apoc.cypher.parallel("MATCH(n) RETURN n")
Regards,
Cobra
11-05-2020 06:19 PM
Hello @anthino12
Did you eventually find the solution for this?
Thanks,
Richard
All the sessions of the conference are now available online