cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Performance labeled nodes VS blanco nodes

I created the following query in the known movie database:

MATCH (m:Movie)-[:ACTED_IN]-()-[:FRI]-(p:Person {name:'Tom Hanks})

Arthur__0-1662543016771.png

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!

0 REPLIES 0