小编And*_*Liu的帖子

CosmoDB和DocumentDB之间有什么区别

据我所知,CosmoDB能够使用Gremlin查询语言进行Graph查询.除此之外,定价,营销等都看起来都一样.他们提出了一个新产品来添加Gremlin似乎很奇怪,因为他们没有这样做来添加MongoDB支持.这两种产品之间有什么可辨别的差异?

azure-cosmosdb

18
推荐指数
3
解决办法
1万
查看次数

DocumentDB客户端1.14杀死了运行进程

将DocumentDB客户端升级到版本1.14.0(CosmosDB更改)后,我的应用程序在Azure中作为云服务运行时意外终止.我在本地针对最新版本的模拟器运行它没有问题.在针对Azure CosmosDB实例在本地运行它时,我也没有遇到任何问题.这似乎指向云服务环境的一些问题(降级到以前的版本1.13.4工作).

以下是事件日志中的错误:

Faulting application name: Application.exe, version: 1.0.21.0, time stamp: 0x59196ef2
Faulting module name: DocumentDB.Spatial.Sql.dll, version: 1.14.8.3, time stamp: 0x59125a74
Exception code: 0xc000001d
Fault offset: 0x0000000000074753
Faulting process id: 0x1754
Faulting application start time: 0x01d2cd9ce28ddb4f
Faulting application path: C:\Resources\directory\08707c89190040c7b18ae72ed40addee.Host.LocalStoreDirectory\orleans-backend\1.0.21\Application.exe
Faulting module path: C:\Resources\directory\08707c89190040c7b18ae72ed40addee.Host.LocalStoreDirectory\orleans-backend\1.0.21\DocumentDB.Spatial.Sql.dll
Report Id: da991426-1eff-4d89-bf21-118198848fef
Faulting package full name: 
Faulting package-relative application ID: 

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException
   at Microsoft.Azure.Documents.ServiceInteropWrapper.GetPartitionKeyRangesFromQuery(IntPtr, System.String, Boolean, Boolean, System.String[], UInt32[], UInt32, Microsoft.Azure.Documents.PartitionKind, …
Run Code Online (Sandbox Code Playgroud)

azure azure-cloud-services azure-cosmosdb

8
推荐指数
1
解决办法
668
查看次数

使用存储过程的Azure documentdb批量插入

嗨我正在使用16个集合来插入大约3-4百万个json对象,范围从每个对象5-10k.我使用存储过程来插入这些文件.我有22个容量单位.

function bulkImport(docs) {
    var collection = getContext().getCollection();
    var collectionLink = collection.getSelfLink();

    // The count of imported docs, also used as current doc index.
    var count = 0;

    // Validate input.
    if (!docs) throw new Error("The array is undefined or null.");

    var docsLength = docs.length;
    if (docsLength == 0) {
        getContext().getResponse().setBody(0);
    }

    // Call the CRUD API to create a document.
    tryCreateOrUpdate(docs[count], callback);

    // Note that there are 2 exit conditions:
    // 1) The createDocument request was not accepted. 
    // …
Run Code Online (Sandbox Code Playgroud)

bulkinsert azure azure-cosmosdb

7
推荐指数
2
解决办法
6712
查看次数