Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Immutable information in RelationshipProxy
Since the start node, end node, and type of a relationship never changes, this information can be kept within the RelationshipProxy object. Doing so does not require significant storage overhead, with the current address sizes (nodeId=35bit, relationshipId=35bit, typeId=16bit) this information (together with the id of the relationship) occupies 212 bits, which can be stored in 16 bytes (128 bits). The implementation in this changeset packs the high bits of the start/end node ids and the relationship id into separate nibbles of a 16 bit (short) fields. This limits the number of roundtrips required down to the store layer.
- Loading branch information
Showing
9 changed files
with
136 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
community/kernel/src/main/java/org/neo4j/kernel/impl/core/RelationshipData.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.