azure-cosmosdb

Scalardb QA application not properly working with Azure Cosmos DB

无人久伴 提交于 2021-02-08 10:02:23
问题 I tried to start scalardb backend QA application with Azure Cosmos DB. The Spring boot application shows as started. But I couldn't access the QA backend application with port 8090. Port 8090 does not list in listening ports lsof -i -P -n | grep LISTEN . QA backend Application When we connect it with the QA frontend application, it shows an error message An error occurred during the login QA frontend Application Step to reproduce Cosmos DB Account Creation Create an Azure Cosmos DB account

Azure cosmosdb changefeed for document collection

旧时模样 提交于 2021-02-08 04:59:27
问题 Is it possible to register a service running on a cluster node as observer to changefeed for a document collection across multiple cosmos db accounts in th cluster? In the case of an Azure Function(triggered by ChangeFeed of a document collection), the function needs to be provisioned for each cosmos db account in the cluster. https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed-processor https://docs.microsoft.com/en-us/azure/cosmos-db/serverless-computing-database How can a service

CosmosDB Change Feed Scaling

喜夏-厌秋 提交于 2021-02-07 21:53:39
问题 I have my Azure function with CosmosDB trigger, that listens to a collection using lease collection mechanism. This function is hosted on consumption plan. I have noticed that under heavy load I tend to get updates to my function with a greater and greater delay. After reading documentation I did not find a way how to improve scaling of my setup. Is there a way to? 回答1: Consumption Plan instances should grow based on how far behind your Function is lagging. If you are using Consumption Plan,

Create a document in Cosmos DB via Logic App and PartitionKey mismatch in document & header

南楼画角 提交于 2021-02-07 19:18:34
问题 So I'm trying to create an Azure Logic App which will create a new record inside a Cosmos DB collection to store review results. I've created a Cosmos DB database (called icecream ) + collection (called reviews ). The PartitionKey of the reviews collection is /flavorIdentifier . In my Logic App I have a step which inserts a new document. The code looks like this. "Create_review": { "inputs": { "body": { "flavor": "@{body('JSON_parseren_2')?['flavor']}", "flavorIdentifier": "@{body('JSON

What happens to documents in documentDb that have no partition key property?

心已入冬 提交于 2021-02-07 18:18:42
问题 Looking at how to set up DocumentDb with a partition key, if I have a multi-tenant application, where most documents have a tenantId, it seems reasonable to create the collection with a partition key of /tenantId/. What happens to documents that don't have a tenantId property? Will they just get added without one, or will Cosmos DB create those objects/documents with some kind of system (hard-coded) tenantId, so they are stored together? 回答1: These documents are automatically assigned the

How does CosmosDB change feed behave in the presence of multi-master replication?

旧城冷巷雨未停 提交于 2021-02-07 10:36:54
问题 I have CosmosDB set up in multi-master mode replicated to several sites, and am utilizing the change feed API to read updates from the database. Currently I am reading from a single location, but soon I plan to read from multiple for failover redundancy. What isn't clear is how the change feed API is supposed to behave in this scenario. If the timestamp that change feed uses to poll for changes is copied directly from the originating site, I can imagine some timing situations where change

Azure Cosmos DB Graph Wildcard search

妖精的绣舞 提交于 2021-02-06 08:56:27
问题 Is it possible to search Vertex properties with a contains in Azure Cosmos Graph DB? For example, I would like to find all persons which have 'Jr' in their name? g.V().hasLabel('person').has('name',within('Jr')).values('name') Seems like the within('') function only filters values that are exactly equal to 'Jr' . I am looking for a contains. Ideally case insensitive. 回答1: None of the text matching functions are available for CosmosDB at this time. However, I was able to implement a wildcard

Azure Cosmos DB Graph Wildcard search

时光毁灭记忆、已成空白 提交于 2021-02-06 08:55:50
问题 Is it possible to search Vertex properties with a contains in Azure Cosmos Graph DB? For example, I would like to find all persons which have 'Jr' in their name? g.V().hasLabel('person').has('name',within('Jr')).values('name') Seems like the within('') function only filters values that are exactly equal to 'Jr' . I am looking for a contains. Ideally case insensitive. 回答1: None of the text matching functions are available for CosmosDB at this time. However, I was able to implement a wildcard

Error while using CosmosDB provider for Entity Framework Core with Azure Tables

99封情书 提交于 2021-02-05 11:42:43
问题 I'm trying to do a simple CRUD application with EF Core and Azure Table (from Azure Storage Account). I'm passing name of the storage account as database name (The docs aren't exactly clear on that) services.AddDbContext<HomioDbContext>(options => options.UseCosmos( "https://homiostorage.table.core.windows.net/", "{Account Key}", databaseName: "{name of storage account}")); Doing any db operation throws following error ( The value for one of the HTTP headers is not in the correct format )

Is there a way to exclude NULL values from Azure Cognitive Search Indexes

心不动则不痛 提交于 2021-02-05 08:44:30
问题 So for example we have field 1 up to 10. I want to index all the field in Azure Search, so you can filter, search on those filters. My Question is, is there a way to just exclude the fields that are NULL from a specific ID, so not store them in Azure search? See example underneath. The data itself is initially stored in Azure Cosmos Database. In Azure Cosmos DB it would like this: Id 1 field 1: a field 2: b field 5: c field 6: d field 8: e Id 2 field 3: a field 2: b field 5: c field 9: d