Azure Cosmos DB databases can be configured to use a Gremlin API. Via this feature, Cosmos DB aims to provide a compatible server interface for applications using the Tinkerpop Gremlin graph traversal language. Not all Gremlin features are supported by Cosmos DB's implementation.
Questions tagged [azure-cosmosdb-gremlinapi]
283 questions
1
vote
1 answer
Does partition strategy helps on Gremlin traversal performance
I tried to play around with the partition strategy as what was mentioned here https://tinkerpop.apache.org/docs/current/reference/ .Initially, I expect that when I define a specific partition key for a zone and write some vertices on it, it would…

santi
- 651
- 1
- 6
- 6
1
vote
0 answers
CosmosDb with Gremlin: RequestRateTooLargeException leaves a inconsistent database state
I executed a large query and gets a RequestRateTooLargeException because of temporary high load. When I look in the database a few of the created entries already exists which leads to a ConflictException on a retry with the same ids.
This effect can…

Martin Demberger
- 147
- 9
1
vote
1 answer
Aggregation/GroupCount on graphDatabase
I have a graph's database in gremlin with shape like this image:
Vertices:
Person
Event:
Edge:
Attends
I need help to build a query to get results between all "Persons", with the edge as a count of all "Events" in common. The result should…

Lucas
- 23
- 3
1
vote
1 answer
Update a vertex property with another property value in Cosmos Gremlin API
I would like to move a property value to another property in all vertex using gremlin…

Venkata Dorisala
- 4,783
- 7
- 49
- 90
1
vote
2 answers
Gremlin.NET deserialize number property
I have a query that creates a vertex and an edge "Created". The edge has a property "on" which is unix datetime long. When I execute a query with the following segment in the Azure Cosmos DB terminal, it works as expected - an object is returned…

Jonathan Eckman
- 2,071
- 3
- 23
- 49
1
vote
0 answers
Defining variables in Azure Cosmos DB Graph query
I am struggling with running the pagination script on Azure Cosmos DB Graph, using Gremlin.NET:
t = g.V().hasLabel('person');[]
t.next(2)
t.next(2)
It comes from Tinkerpop page where it is described how to reuse traversal instance to avoid loading…

Radosław Maziarka
- 655
- 1
- 6
- 16
1
vote
1 answer
Partition key path /id is invalid for Gremlin API
I have an Azure function that runs with a CosmosDBTrigger. It points correctly to my target database and collection. The CreateLeaseCollectionIfNotExists is set to true and the LeaseCollectionName is set to leases. When the function is started I…

von v.
- 16,868
- 4
- 60
- 84
1
vote
1 answer
How to connect Django with Azure Cosmos DB
I want to connect Django with Azure Cosmos DB. Either with Core SQL Or Gremlin. Do we have any existing libraries we can use to achieve it?

Shekar Selvaraj
- 11
- 4
1
vote
1 answer
Azure cosmos db migration tool error occurred while sending the request
I'm not able to connect to Azure cosmos migration tool,
getting an error like : An error occurred while sending the request.

dada nanjesha
- 11
- 1
1
vote
1 answer
longest path by weight in gremlin
i what will be the best query to get heaviest path b/w 2 nodes in a directed graph in gremlin?
*I do have multiple paths, and sometime longest path is not the heaviest.
where each edge (not node) has an integer attribute (weight). weight range is…

Rakesh Prasad
- 602
- 1
- 13
- 32
1
vote
1 answer
not able to close connection python gremlin client
I have been using https://github.com/Azure-Samples/azure-cosmos-db-graph-python-getting-started project to work with cosmosdb-gremlin.
project work fine when i am running it as python function on windows.
now i am trying to convert this code into…

Rakesh Prasad
- 602
- 1
- 13
- 32
1
vote
1 answer
Gremlin query unintentionally iterates whole graph
I'm trying to upsert two vertices in a single query. I'm doing the following query, but the second vertex somehow iterates the entire graph (see image clipped from executeprofile).
What am I misunderstanding here?
g
.V('1')
.fold()
.coalesce(
…

bech
- 627
- 5
- 22
1
vote
1 answer
Gremlin, Group By Edge Properties
I am using CosmosDB Gremlin Engine and trying to write a query that returns all EDGE properties, grouped by key, with a list of distinct values.
Here is an example of my schema;
g.V().has('server','id','AARCWIVPAP13056').fold().coalesce(unfold(),…

Sage
- 4,769
- 1
- 21
- 28
1
vote
1 answer
How to Perform Once off Side Effect at the Beginning of a Repeat in Gremlin?
I need to run a Gremlin query which travels from the leaves (vertices with no outgoing edges) and edgeless vertices of a graph down the graph collecting the starting vertices as well as incoming vertices (1 level at a time) up to a certain limit.…

JosephGage
- 79
- 2
- 9
1
vote
0 answers
Calculating limit in Cosmos DB
I'm using Cosmos DB with Gremlin interface and I'm puzzled with the way Cosmos DB calculates RU limit. For example: i have collection provisioned with 400 RU's. Then I run query which sometimes throws RequestTooLargeException (mind that this…

Krzysztof
- 498
- 5
- 23