PhunkyPhil
PhunkyPhil
ATApache TinkerPop
Created by PhunkyPhil on 5/29/2025 in #questions
Cosmos functionality
Hi all, I'm toying with cosmos gremlin for my DB and after experimenting more, I find that the limitations it has are getting to be a bit ridiculous. I'm trying to use mergeV/E to simply upsert but since there is no map support I can't upsert with this function. Am I correct? Is this version of the language even turing complete?
12 replies
ATApache TinkerPop
Created by PhunkyPhil on 5/21/2025 in #questions
Gremlin traversal exceeded maximum compilation depth. Max: 400
Hi all, I'm using gremlin through cosmos and the python library and I'm getting this error when I try to add a lot of vertices to my graph at the same time. (A lot as in only 583 vertices). I'm guessing this refers to the actual traversal part, but considering my query is structurally just chained addV's: g.addV("..").property(...).addV("..").... I can't imagine it's that complex. I tried chunking them into smaller batches and submitting them individually but I still get the same error after the last batch. The exception type is "GraphCompileException" and it's a 597 from cosmos. The graph interopstatuscode is QuerySyntaxError which seems strange. I'm very new to gremlin, but I haven't found a better way to batch upload a lot of vertices at once. I see in cosmos the graph is represented as JSON, could I construct a graph in JSON then upload that to my DB?
8 replies