question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When setting up a graph db in Cosmos you have to specify a partition key, and according to this post:

Using a partitioned graph in Azure Cosmos DB

you should then specify the partition key in all your queries, by adding:

.has('partitionKey', 'partitionKey_value')

Is there a way in Gremlinq to setup a partition key, or is it up to myself, to addd .has(‘partitionKey’, ‘partitionKey_value’) to my queries?

TIA Søren

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anhericommented, Jan 18, 2023

so how do you get all vertices on a partitionKey? I would expect to do something like this g.V<Vertex>(new CosmosDbKey(“US”)) (US = if your partition your data on country codes)

But the CosmosDbKey only supports id,partitionKeyValue, which will always return 1 element

1reaction
danielcwebercommented, Mar 14, 2022

This will work when instances of the CosmosDbKey-struct are passed into V(…).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Choosing the Right DynamoDB Partition Key
Partition key : A simple primary key, composed of one attribute known as the partition key. Attributes in DynamoDB are similar in many...
Read more >
Table partitioning keys
A table partitioning key is an ordered set of one or more columns in a table. The values in the table partitioning key...
Read more >
Primary Key, Partition Key, Clustering Key - Part One
The Partition Key is responsible for data distribution across the nodes. It determines which node will store a given row. It can be...
Read more >
database - Difference between partition key, composite ...
Partition Key : It is a construct of distributed databases(where data of a single table is divided into multiple parts called partitions).
Read more >
Partitioning and horizontal scaling - Azure Cosmos DB
Learn about partitioning, logical, physical partitions in Azure Cosmos DB, best practices when choosing a partition key, and how to manage ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found