Replies: 1 comment 2 replies
-
In theory, adding a vertex shall be faster than adding an edge because an edge needs two writes while a vertex needs only one. I noticed in your second addV query, you used property key "name" while in your first query you used "Name". They are two different properties (IIRC JanusGraph is case-sensitive). I suspect your second query was slow because it needed to update the schema. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was performing
addPropertySteps
followingaddV
andaddE
steps, no index is linked to the records. I used the default traversal sourceg
. All properties areSTRING
properties withSINGLE
cardinality.Here are the test results:
The first
addV
is slower because it is the first traversal performed, but the followedaddV
is still much slower thenaddE
's. Is this a expected behavior?Beta Was this translation helpful? Give feedback.
All reactions