cancel
Showing results for 
Search instead for 
Did you mean: 

Performance labeled nodes VS blanco nodes

Arthur_
Node

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
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.