mongodb2.2更新内容
来源:互联网 发布:网络销售公司介绍 编辑:程序博客网 时间:2024/09/21 08:54
主要的更新如下:
1.新增了聚合框架
聚合框架,使得它可以做聚合操作,而无需使用map-reduce。比如 数据结构如下:{"_id":"10280","city":"NEW YORK","state":"NY","pop":5574,"loc":[-74.016323,40.710537]}
要返回所有国家,人口超过1000万,使用下面的聚合操作:db.zipcodes.aggregate( { $group :
{ _id : "$state",
totalPop : { $sum : "$pop" } } },
{ $match : {totalPop : { $gte : 10*1000*1000 } } } )
2.Improved Data Center Awareness with Tag Aware Sharding
MongoDB 2.2 adds additional support for geographic distribution or other custom partitioning for sharded collections in clusters.
By using this “tag aware” sharding, you can automatically ensure that data in a sharded database system is always on specific shards.
For example, with tag aware sharding, you can ensure that data is closest to the application servers that use that data most frequently.
Shard tagging controls data location, and is complementary but separate from replica set tagging, which controls read preference and write concern.
For example, shard tagging can pin all “USA” data to one or more logical shards,
while replica set tagging can control which mongod instances (e.g. “production” or “reporting”) the application uses to service requests.
See the documentation for the following helpers in the mongo shell that support tagged sharding configuration:
sh.addShardTag()
sh.addTagRange()
sh.removeShardTag()
Also, see the wiki page for tag aware sharding.
3.并发改进
MongoDB的2.2增加了服务器的并发操作能力,现在支持数据库级锁定。
详情见,官方地址:http://docs.mongodb.org/manual/release-notes/2.2/#changes
- mongodb2.2更新内容
- mongodb2.0 更新内容
- mongodb2.2源码分析(一)
- mongodb2.2源码分析(一)概述
- MongoDB2.2 的 Time To Live (TTL) 集合一些注意事项
- 更新内容
- ERP系统2011.6.2更新内容
- WatchOS 2 Glance Interface 数据内容更新
- mongodb2.0的改进
- MongoDB2.0安装配置
- MongoDB2.6 新特性
- Mongodb2.6配置文件
- tokuMX > mongodb2.6
- MongoDB2.0安装配置
- 更新的深入内容
- 更新表格列内容
- SQL注入内容更新.
- Ajax 更新 Tbody 内容。
- 百度之星2012年冬季邀请赛第一题分析
- 如何成为一名:黑客/Programmer/Python高手
- Android利用AChartEngine作图时报索引越界
- 学习鸟哥私房菜(五) 之vi与vim
- android4.0 开启硬件加速后应用运行出错
- mongodb2.2更新内容
- 输入三个整数,按从大到小顺序输出
- 代理模式
- 体会函数参数传递(三)
- 学习鸟哥私房菜(六)之 认识与学习bash
- SQL SERVER Configuration Management 配置管理器中的协议
- .Net设计模式之装饰器模式(Decrorator)
- git 的patch用法
- 用指针玩字符串(1)