edolivares
edolivares
ATApache TinkerPop
Created by edolivares on 2/15/2023 in #questions
Coalesce steps causing concurrency issues
I’ve been having some issues with concurrnt modification errors on AWS Neptune. I’ve tried lowering the reserve concurrency but, the issue persists. Based on https://stackoverflow.com/questions/69932798/concurrentmodificationexception-in-amazon-neptune-using-gremlin-javascript-langu I was wondering if I could split up my use-case into two queries the first a g.V().has({my unique property})… and if it’s null only then do I do the mutation step. I’m kind of confused why this would make a difference though. This is my use-case (gremlinStatistics is how I imported __ for anonymous traversals, I’ll be changing that haha) collection = await gremlinConnection .V() .hasLabel('collection') .has('id', conceptId) .fold() .coalesce( gremlinStatistics.unfold(), addVCommand ) .next() https://github.com/nasa/Common-Metadata-Repository/blob/master/graph-db/serverless/src/utils/cmr/indexCmrCollection.js
9 replies
ATApache TinkerPop
Created by edolivares on 1/26/2023 in #questions
using mergeV/E
Hello I’m trying to upgrade my gremlin package to latest and running into an issue with mergeE and mergeV. I’m using this to replace some coalace steps that I was using before. How do you set the label in mergeV() for the particular vertex. I see I can pass the T.label in the map but, I don’t understand what the equivalent of this would be for JavaScript
7 replies