β11-27-2022 10:23 PM
I have a graph that has 80 million vertexes and 30 million edges. I need to scan all the edge data, including the ids of its starting and ending vertexes.But the performance is poor and I need to optimize it.
This is my query:
MATCH (v)-[e:E1]->(n) RETURN id(v) AS starting, id(n) AS ending, e.prop1, e.prop2,...
Can anyone give some ideas on optimization or possible solutions for this scenario?
β11-27-2022 10:26 PM
Neo4j Version: 3.5
Operating System: Ubuntu 20.04 / Docker
API: Cypher
β11-28-2022 03:02 AM - edited β11-28-2022 03:04 AM
The query is fairly straight forward. Are you trying to return millions of rows of data in neo4j browser? If so, maybe try cypher-shell instead.
https://neo4j.com/docs/operations-manual/current/tools/cypher-shell/
β12-01-2022 02:44 AM
I'm using a cypher-shell. Is there any other way to optimize it?
β12-01-2022 02:46 AM
I tried relationship index, but version 3.5 doesn't support it.
β12-01-2022 02:47 AM
β12-01-2022 03:41 AM
I donβt think relationship indexes would help since you are not searching on a relationship property. How about you determine the query plan and post it, v
All the sessions of the conference are now available online