Questions tagged [azure-cosmosdb]

Azure Cosmos DB is Microsoft's fully managed and serverless distributed database with support for NoSQL and relational workloads. It offers global distribution across all Azure regions transparently replicating your data wherever your users are. Develop applications using open-source database engines, including PostgreSQL, MongoDB, and Cassandra. Get automatic scalability, enterprise-grade security, and cost-effective consumption-based pricing.

Azure Cosmos DB is a fully managed, distributed NoSQL and relational database for modern app development. Get single-digit millisecond response times and up to 99.999-percent availability, backed by SLAs. Build cloud-native apps quickly and easily using your preferred tools with support for open-source PostgreSQL, MongoDB and Apache Cassandra. Enjoy automatic and instant scalability, and fast writes and reads anywhere in the world with turnkey data replication and multi-region writes. Gain insight over real-time data with no-ETL analytics using Azure Synapse Link for Azure Cosmos DB.

7404 questions
2
votes
0 answers

PartitionKey extracted from document doesn't match the one specified in the header c#

I don't understand what is happening here. I have some code (which has been in place for ages). It looks like this: public async Task CreateAsync(T model, string partitionKey) { await _client.CreateDocumentAsync( …
r3plica
  • 13,017
  • 23
  • 128
  • 290
2
votes
1 answer

Copy nested objects from SQL Server to Azure CosmosDB using a Data Factory

Let's say I have the following data structure: public class Account { public int AccountID { get; set; } public string Name { get; set; } } public class Person { public int PersonID { get; set; } public string Name { get; set; } …
Connell.O'Donnell
  • 3,603
  • 11
  • 27
  • 61
2
votes
2 answers

How to convert pipeline().parameters.windowStart to epoch in Azure Data Factory copy pipeline query

I have a timestamp column in DocDb, I would like to query that in Azure Data Factory copy pipeline, which copies DocDb to Azure Data Lake I would like to select * from c where c._ts > '@{pipeline().parameters.windowStart}' But I got Errors":["An…
Daolin
  • 614
  • 1
  • 16
  • 41
2
votes
2 answers

Access property of a generic type inside a function

I have a generic function GetDocuments that's querying the CosmosDB API. The generic is constrained by a custom IDocument interface. At the moment, I'm passing an enum as an argument to this function that determines the type of the document --…
dumbchemistry
  • 384
  • 1
  • 5
  • 21
2
votes
1 answer

Gremlin query that returns key/value list where key is the vertex ID and value is value of a specific property

I am starting to learn graph databases and have hit a small snag with a query in the Gremlin query language for a proof of concept. Say I have a vertex that represents a specific type of bolt and each of the properties represent a material and cost…
KyKo
  • 382
  • 4
  • 15
2
votes
1 answer

Using multiple consumers with CosmosDB change feed

I am trying to use cosmos db change feed (I'm referring to https://learn.microsoft.com/en-us/azure/cosmos-db/change-feed-processor and https://github.com/Azure/azure-cosmos-dotnet-v2/tree/master/samples/code-samples/ChangeFeedProcessorV2). When I…
perf-guru
  • 91
  • 3
  • 12
2
votes
1 answer

How to store UserState and ConversationState in Azure Cosmos DB (BotFramework)?

I'm doing a bot with de Microsoft Bot Framework version V4. The documentation is really awful, and I'm having problems with Cosmos DB (Azure) when I try to store de UserSate and the ConversationState. I tried every result in Google but nothing has…
2
votes
0 answers

Unable to connect to Azure Cosmos Db using mongo db api

I am trying to connect to azure cosmos db using mongo db api (spark mongo db connector )to export data to hdfs but I get the below exception: Below is the complete stacktrace: { "_t" : "OKMongoResponse", "ok" : 0, "code" : 115, "errmsg" : "Command…
2
votes
1 answer

Call Azure Cosmos DB UDF function from a powershell script

I have a UDF function in Cosmos DB , it takes a parameter and returns the documents that meets the condition based on the parameter. Each document returned by this UDF has 3 fields, Customer ID Modified Date Customer Status I need this…
dks
  • 151
  • 1
  • 13
2
votes
1 answer

Exporting data from Azure Cosmos DB (where type is MongoDB API)

I need to export data from Azure Cosmos DB in CSV or JSON format to my local system. Can anyone help me with that?
Jasmin Raval
  • 184
  • 1
  • 5
  • 15
2
votes
2 answers

Select documents randomly

I would like to know if there is a way to select randomly documents in CosmosDB (Microsoft Azure). Here is my code, I do not know what to add before "Take(20)": public List BooksList { get; private set; } public async Task>…
kikis
  • 103
  • 2
  • 12
2
votes
1 answer

How does CosmosDb charge RUs for write operations in a multi-master enironment?

Multi-Master Database with single region: SDK reports ~10 RU to perform a write operation Multi-Master Database with 5 regions:: SDK reports ~46.86 RU for the same operation (~5x to incorporate replication to all regions. Makes sense) If you have a…
2
votes
1 answer

"Service is currently unavailable" while connecting to Azure Cosmos DB from the local machine

We have a weird issue when locally debugging an Azure Function V1 with Cosmos DB Trigger. When the app starts, it waits for a couple of minutes and then throws an exception "Service is currently unavailable": The same app works just fine when I run…
Mikhail Shilkov
  • 34,128
  • 3
  • 68
  • 107
2
votes
2 answers

nodejs cosmosdb get count of total records in a table

I'm using cosmosdb with azure table api and no where can I see any way to get total records count from a table. Can see that there are ways to get count of records with sql api. What is the best possible way to get count using azure table apis? I'm…
2
votes
1 answer

Can't write dataframe in Cosmos DB / documentDB from Databricks with pySpark

I get an error I don't understand when trying to save a dataframe I've been working on to a documentDB collection. Others similar issues on stack pointed to incorrect or case sensitive names provided for the Database or the Collection But I Checked…
1 2 3
99
100