hi,
I once read a blog about how long it take for computation operations
such as read from L1 cache, RAM access, send packet from usa to eu,
etc. having a rough idea of the relative cost of major computation
operations, we have better control. for example, in my project i also
use property to store a cityid apart from create a relationship
between user to city, because if reading an int property is 10x faster
than getSingleRelationship + relationship.getEndNode + cityNode.getId.

I'm wondering if could having similar list for neo4j operations. I
understand some operations could be faster than another depending on
different conditions. but let's only focus on basic read/write
operations.

below is my guess, from fastest to slowest, feel free to correct me
and add more.

1, Read id of a node/relationship.
2, Read property value of a node/relationship.
3, Set property value of a node/relationship.
4, Retrieve a node/relationship by id.
5, Create a new node/relationship.
6, Retrieve a node by external id from node index.
7, Retrieve all relationships of a node.
8, Retrieve a certain subset of relationships of a node from RelationshipIndex.
9, Retrieve a certain types of relationships of a node.
10, Add a node to index.
11, Add a relationship to index.

-- 
Best regards

Linan Wang
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to