azure-cosmosdb Questions

1

We are using Cosmos DB as storage but confused of how to accurately calculate the consumed Request Unit. Our current setting is 375k RU/s. First, I use request change in diagnostics to calculate....
Pinter asked 24/2, 2020 at 9:34

3

I'm planning on using Cosmos Db (Document Db) and I'm trying to understand how the queries, indexing and partitions relate to each other. How to partition and scale in Azure Cosmos Db talks about ...
Dioscuri asked 23/5, 2017 at 15:16

1

Solved

I'm trying to use the Partial Document Update (Patch API) to update a child object in my document, but I'm running into trouble. I found this Stack Overflow question which is the same question that...
Oecology asked 10/5, 2022 at 12:51

3

Can anyone explain how atom-record-sequence (ARS) works and how it helps CosmosDB to support multiple models without "performance penalties"? So far, the best answer I found about it was this one ...
Banzai asked 12/1, 2018 at 10:7

7

I'm giving CosmosDB a chance and so I decided to build an app that uses it, but I'm running into this issue when using the emulator: Port is already in use. I'm not sure where to reconfigure the ...
Glaciate asked 30/6, 2017 at 16:42

4

My .NET POCOs are in ProperCase. My json is in camelCase. How can I configure version 3.0 of the .NET SDK to convert when serializing/deserializing to/from Cosmos DB? I know I can add the attribu...
Diggins asked 10/5, 2019 at 20:15

2

Solved

I am new to Gremlin query language. I have to insert data on a Cosmos DB graph (using Gremlin.Net package), whether the Vertex (or Edge) already exists in the graph or not. If the data exists, I on...
Steviestevy asked 10/4, 2018 at 16:14

2

Hi We are facing issue while querying . The document exists in the database. "Message: {\"Errors\":[\"Resource Not Found\"]}\r\nActivityId: 03866338-6596-49b6-8704-1726cb373bfb, Request URI: /...
Photoengrave asked 16/1, 2018 at 22:26

1

I am fairly new to cosmos DB and was trying to understand the increment operation that azure cosmos DB SDK provides for Java for patching a document. I have a requirement to maintain an incremental...
Cretinism asked 17/3, 2022 at 12:27

4

Solved

Entity framework has some nice documentation about Embedding entities but I cannot figure out how to embed a simple string array IEnumerable<string>. Sample class public class Post { public ...
Kyliekylila asked 13/11, 2020 at 10:39

4

I have recently started using Cosmos DB for a project and I am running into a few design issues. Coming from a SQL background, I understand that related data should be nested within documents on a ...
Burgomaster asked 3/8, 2017 at 8:50

2

Solved

For a SQL database, I can easily see the size of the database in the Overview blade in Azure Portal. Or I can query for instance EXEC sp_spaceused to find out. Is there such a thing for Cosmos DB? ...
Medea asked 11/5, 2021 at 23:8

0

According to Microsoft, their Cosmos DB docker image doesn't run on Apple Mac M1 chips. However, I'd always believed that I could run images targetting different architectures with --platform linux...
Packaging asked 3/3, 2022 at 21:53

1

This is my scenario: I want to have one single collection where I can insert and query documents using SqlApi and create vertices and edges using Graph Api, all in the same collection. I believed t...
Emelineemelita asked 24/6, 2018 at 20:7

2

When I try to import CosmosClient from azure.cosmos, I get a ModuleNotFoundError, like the azure-cosmos library was not installed: $ python3.6 -c "from azure.cosmos import CosmosClient" ...
Muriah asked 17/2, 2022 at 16:22

1

Solved

Azure Cosmos DB free tier give us 1000 RU/s and 25 GB of storage. I created a database with one container, added some data to it and executed some queries. Looking at the insights, I can see this: ...
Emlen asked 23/1, 2022 at 18:30

1

Solved

Trying to add a new item into a parent object's child collection. For example, in the code below, how would one go about adding a new Item to the Items collection? { "id": "SalesOrd...
React asked 18/1, 2022 at 11:53

3

Solved

I would like to reduce load on Azure Cosmos DB SQL-API, which is called from a .NET Core Web API with dependency injection. In App Insights, I have noticed that every call to the Web API results i...
Pneumodynamics asked 15/6, 2020 at 7:19

2

Solved

I'm trying to write a function in a Function App that manipulates data in a CosmosDB. I get it working if I drop the read-write key in the environment variables. To make it more robust I wanted it ...
Salters asked 13/5, 2021 at 1:16

3

I am trying to save multiple Document to 'multiple Collection' at once in one Transaction. So if one of the save fail, then all the saved document should RollBack I am using SpringBoot & Sprin...
Drobman asked 1/4, 2019 at 4:10

2

I want to use a CosmosDB SQL-API in a .Net 6 WebAPI. Is there also an AddCosmos() method available to inject client in different services or is it really necessary to implement my own cosmos-servic...
Jocosity asked 7/11, 2021 at 11:52

3

Solved

I'm using CosmosDB using SQL API and I'm trying to join two collections. I saw join example within a document but not getting what actually looking. RequestLog { "DateTimeStamp": "2018-03-16T10:5...
Destruct asked 19/3, 2018 at 16:48

1

Solved

I use the .NET SDK to retrieve some items in a Cosmos DB instance using continuationTokens to be able to retrieve paginated pieces of data. So far this works. I use a generic Get function to retrie...
Rubious asked 27/11, 2021 at 16:17

3

Solved

How can I see the document DB sql query (in a string) generated by a linq statement before it gets sent to the server? _documentClient.CreateDocumentQuery<MyType>( UriFactory.CreateDocument...
Lunn asked 7/12, 2016 at 17:29

6

What's the query or some other quick way to delete all the documents matching the where condition in a collection? I want something like DELETE * FROM c WHERE c.DocumentType = 'EULA' but, apparent...
Reiterant asked 27/6, 2017 at 7:46

© 2022 - 2024 — McMap. All rights reserved.