Improve performance of Add multiple-to-multiple edges #3158
Replies: 2 comments
-
You can find some reference numbers on write performance (of vertices) here: First check your configs regarding properties containing the word "batch".
Check if your Cassandra backend is holding up and add nodes if necessary. Best wishes, Marc |
Beta Was this translation helpful? Give feedback.
-
You may want to create a composite index for a property called "type" which is basically a replication of your node's label. Then the query would be: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We need to create the Many-To-Many edges.
To test we used 760 Users and tried to create edges to 3975 content items.
It should create 3021000 edges in total.
According to the profile output this operation took 51 seconds to execure. The AddE step took 90% of the time.

Example of query:
g.V().hasLabel('User').as('u').V().hasLabel('Content').addE('Indirect').from('u').profile()
We use cassandra for backend.
Are there any ideas how to improve edge creation (VM scaling, query rewrite, janusGraph configs)?
Beta Was this translation helpful? Give feedback.
All reactions