DocumentDB使用基于JSON文档的数据服务 (ps: 目前只能在Azure平台上使用)。
DocumentDB是一个全托管的基于文档的数据库服务 (ps: 目前无法本地安装),使用无模式JSON数据模型,有丰富的查询和索引功能。它提供了可配置的和可靠的性能,原生JavaScript事务处理,以及云计算特有的弹性扩展能力。
DocumentDB的框架图

在图中Collection下面有:
存储过程 Sproc
触发器 Trigger
自定义函数 User Defined Functions
亮点为可以使用JavaScript写Server side的自定义函数(UDF)
自定义函数中可以调用存储过程;
可用作触发器可以用来预/后处理数据。
用户自定义函数的JavaScript没有访问上下文对象的权限,只能用来做计算。[摘自: http://dl.windowsazure.com/documentDB/jsserverdocs/]
DocumentDB目前使用仍然使用SQL来查询JSON数据(为了兼容.NET/Java?)。但也支持通过HTTP URL与数据库交互,详情。这一点又和 couchdb 比较相似。
例如部分API例表:
这是一套与MongoDB有些相似的NoSQL数据库,只是不知道市场接受程度如何。
项目官网 http://azure.microsoft.com/en-us/documentation/services/documentdb/
DocumentDB是一个全托管的基于文档的数据库服务 (ps: 目前无法本地安装),使用无模式JSON数据模型,有丰富的查询和索引功能。它提供了可配置的和可靠的性能,原生JavaScript事务处理,以及云计算特有的弹性扩展能力。
DocumentDB的框架图

在图中Collection下面有:
存储过程 Sproc
触发器 Trigger
自定义函数 User Defined Functions
亮点为可以使用JavaScript写Server side的自定义函数(UDF)
自定义函数中可以调用存储过程;
可用作触发器可以用来预/后处理数据。
用户自定义函数的JavaScript没有访问上下文对象的权限,只能用来做计算。[摘自: http://dl.windowsazure.com/documentDB/jsserverdocs/]
DocumentDB目前使用仍然使用SQL来查询JSON数据(为了兼容.NET/Java?)。但也支持通过HTTP URL与数据库交互,详情。这一点又和 couchdb 比较相似。
例如部分API例表:
| VALUE OF THE _SELF | DESCRIPTION |
| /dbs | feed of databases under a database account |
| /dbs/{_rid-db} | Database with the unique id property with the value {_rid-db} |
| /dbs/{_rid-db}/colls/ | feed of collections under a database |
| /dbs/{_rid-db}/colls/{_rid-coll} | Collection with the unique id property with the value {_rid-coll} |
| /dbs/{_rid-db}/users/ | feed of users under a database |
| /dbs/{_rid-db}/users/{_rid-user} | User with the unique id property with the value {_rid-user} |
| /dbs/{_rid-db}/users/{_rid-user}/permissions | feed of permissions under a database |
| /dbs/{_rid-db}/users/{_rid-user}/permissions/{_rid-permission} | Permission with the unique id property with the value {_rid-permission} |
这是一套与MongoDB有些相似的NoSQL数据库,只是不知道市场接受程度如何。
项目官网 http://azure.microsoft.com/en-us/documentation/services/documentdb/
回复 (0)
微信扫码 立即评论
