Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-07-2022 02:33 AM
I created the following query in the known movie database:
MATCH (m:Movie)-[:ACTED_IN]-()-[:FRI]-(p:Person {name:'Tom Hanks})
I was wondering if the node represented by '()' should include a label to improve its performance.
So which query is better for improving performance speed in large-scale applications?
Original: MATCH (m:Movie)-[:ACTED_IN]-()-[:FRI]-(p:Person {name:'Tom Hanks})
Or labeled: MATCH (m:Movie)-[:ACTED_IN]-(:Actor)-[:FRI]-(p:Person {name:'Tom Hanks})
thank you in advance!
All the sessions of the conference are now available online