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-cosmosdb
7,668
questions
-3
votes
0
answers
12
views
For CosmosDB, Is the DatabaseRid the same that the Database name?
I have a CosmosBD, my Resource Group, DBAccount and Database, but i need the DatabaseRid.
I dont know where databaseRid is or if it is the same that the databasename.
I tried to find it in the ...
-1
votes
0
answers
12
views
Speed up connection between Azure AppService and CosmosDB
I have an app in Azure AppService and a mongo database in CosmosDB. They are in a same region, but the speed of the queries are much slower compared to a cheap VPS with an installed webserver and ...
0
votes
0
answers
14
views
Response status code does not indicate success: BadRequest (400); Substatus: 0 for basic CosmosDb insert
My object model:
public class PhoneBook
{
public string Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
}
my Container creation:
db....
0
votes
0
answers
21
views
"Detect Datetime" setting ignored when using Managed Identity for connecting to CosmosDB Source in ADF Copy activity
In several Azure Data Factory pipelines one of the activity is Copy Activity that uses Azure Cosmos DB for NoSQL as source and Azure Data Lake Storage Gen2 with JSON format as sink. The dates stored ...
0
votes
0
answers
40
views
Trying to work with the ComsosDb Change Feed Reader on an Azure function, how do I define the StartFromTime parameter?
I have an Azure Function that looks like this:
[Function("MyCosmosDBTrigger")]
public async Task Run([CosmosDBTrigger(
databaseName: "myDatabase",
containerName: "...
0
votes
0
answers
55
views
How to change category name in Categories container and in Products container in CosmosDB? [closed]
I am new in CosmosDB. I want to have two separate containers: Categories and Products. They both have category name. Now I want to change category name from "Devices" to "Electronics&...
0
votes
0
answers
72
views
Error handling in Azure function with custom class
My login function looks like this:
[Function("Loginxyz")]
public async Task<IActionResult> GenerateToken(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = &...
-1
votes
0
answers
30
views
Bi-directional sync between Dynamo DB and Cosmos DB [closed]
I'm looking for a robust solution for setting up a bi-directional sync / replication between DynamoDB in AWS and Cosmos in Azure. From my search so far, I could not find solution for this.
I just ...
0
votes
1
answer
43
views
How to fetch data in cosmos db for a particular a child value irrespective of which parent it belongs to?
The items I have in cosmos db have large unstructured data. A part of those items contains information which could look like below:
object_results": {
"read_file": {
...
0
votes
0
answers
54
views
How to extract the index of a character's nth occurrence from input string in cosmos DB?
I'm trying to extract different parts of an string input based on the occurrence of a character. Using SUBSTRING and INDEX_OF I was able to extract the first part of the my string.
select '...
0
votes
1
answer
63
views
How to use IIF in ORDER BY Queries for Azure Cosmos DB
I have items in my cosmosdb and I want to order them by the orderStatus. RECEIVED items will be listed first, then PROCESSING items, and then COMPLETED items.
Here is the query I have written. But ...
0
votes
1
answer
40
views
CosmosDB calculated property to get age from date of birth
I'm looking for a way to get the age of a person given their date of birth in CosmosDB.
I've read on the docs that they've recently implemented "computed properties" at container level on ...
0
votes
0
answers
39
views
CosmosDB with PyMongo replaces the array field in document with literal array filter subdocument
I'm using the CosmosDB on Azure with MongoDbApi. In my Flask service I use pymongo.
My collection consists of a documents similar to this:
{
"file_name": "foo",
"date&...
0
votes
1
answer
25
views
Is it possible to use Dynamic Parameter with SqlQuery in Cosmos DB input binding
Is it possible to have parameter passed to SQLQuery if yes how.
public async Task<string> SomeFunction
([ActivityTrigger] string input,
[CosmosDBInput(
databaseName:"dbname"...
1
vote
1
answer
30
views
Is there another solution for deprecated UriFactory.CreateDocumentUri in cosmosDb?
I am using UpsertItemAsync to create a document and I need to get the uri to that created document, is there some replacement for deprecated CreateDocumentUri or I have to do it manually?