O'Reilly logo

Learning Neo4j 3.x - Second Edition by Rik Van Bruggen, Jérôme Baton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Operators

Operators are actions from the server. They are of several kinds and, to make a comparison, they are like CPU instructions. Some take longer to execute than others. As stated by Petra Selmer and Mark Needham, the operators to look for are as follows: 

  • All nodes scan 
  • Label scan 
  • Node index seek
  • Node index scan

Obviously, scanning all the nodes is the most expensive operator, and the remaining ones become less and less expensive. Among the different possibilities to execute each analyzed query, the cost planner chooses the cheaper one.

For this goal, it uses statistics updated on each query execution. (The rule planner does not use these statistics.)

As query plans are cached, it would be better to use parameters instead of literals ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required