在CosmosDB中启用upsert [英] Enable upsert in CosmosDB
问题描述
你好,
我阅读了有关UpsertDocumentAsync以便在CosmosDB文档中进行upsert的一些内容.
I read a few things about UpsertDocumentAsync to upsert in CosmosDB doc.
可以为CosmosDB中的集合启用Upsert.表示每当我尝试插入并且ID已经存在时,请用新文档替换该文档.
Is is possible to enable Upsert for a collection in CosmosDB. Means whenever I try to insert and if the id already exists then replace the doc with new doc.
如果这不可能,请帮助我如何实现以下目标.
If this is not possible then please help me how can I achieve the following thing.
我想创建复制任务,该任务从ADLS读取镶木地板文件并将其写入CosmosDB.我如何在这里获得upsert?当前它给我一个错误-具有指定ID或名称的资源已存在"当我重新运行管道时,显然是因为 大多数数据已经存在
I want to create copy task which reads parquet file from ADLS and writes it to CosmosDB. How can I achieve upsert here?Currently it gives me error - "Resource with specified id or name already exists" when I rerun the pipeline, obviously because most of the data already exists
由于我要导入尺寸,因此我想定期重新加载尺寸
Since I am trying to import dimensions, I want to reload them periodically
谢谢
推荐答案
感谢您的反馈.
我们正在努力将cosmosdb的"Upsert"功能添加到ADFv2中,请下周尝试一下.
We're currently working on adding 'Upsert' feature of cosmosdb into ADFv2, please have a try next week.
感谢您的耐心等候.
这篇关于在CosmosDB中启用upsert的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!