手机版
你好,游客 登录 注册
背景:
阅读新闻

MongoDB 2.0.5 发布,分布式文档数据库

[日期:2012-05-10] 来源:Linux社区  作者:Linux [字体:大 中 小]

MongoDB是一个介于关系数据库和非关系数据库之间的产品, 是非关系数据库当中功能最丰富,最像关系数据库的。他支持的数据结构非常松散,是类似json的bjson格式,因此可以存储比较复杂的数据类型。 Mongo最大的特点是他支持的查询语言非常强大,其语法有点类似于面向对象的查询语言,几乎可以实现类似关系数据库单表查询的绝大部分功能,而且还支持 对数据建立索引。

它的特点是高性能、易部署、易使用,存储数据非常方便。主要功能特性有:

  • 面向集合存储,易存储对象类型的数据。
  • 模式自由。
  • 支持动态查询。
  • 支持完全索引,包含内部对象。
  • 支持查询。
  • 支持复制和故障恢复。
  • 使用高效的二进制数据存储,包括大型对象(如视频等)。
  • 自动处理碎片,以支持云计算层次的扩展性
  • 支持RUBY,Python,JAVA,C++,PHP等多种语言。
  • 文件存储格式为BSON(一种JSON的扩展)
  • 可通过网络访问

所谓“面向集合”(Collenction-Orented),意思是数据被分组存储在数据集中,被称为一个集合(Collenction)。每个 集合在数据库中都有一个唯一的标识名,并且可以包含无限数目的文档。集合的概念类似关系型数据库(RDBMS)里的表(table),不同的是它不需要定 义任何模式(schema)。
模式自由(schema-free),意味着对于存储在mongodb数据库中的文件,我们不需要知道它的任何结构定义。如果需要的话,你完全可以把不同结构的文件存储在同一个数据库里。
存储在集合中的文档,被存储为键-值对的形式。键用于唯一标识一个文档,为字符串类型,而值则可以是各中复杂的文件类型。我们称这种存储形式为BSON(Binary Serialized dOcument Format)。

MongoDB服务端可运行在Linux、Windows或OS X平台,支持32位和64位应用,默认端口为27017。推荐运行在64位平台,因为MongoDB

在32位模式运行时支持的最大文件尺寸为2GB。

MongoDB把数据存储在文件中(默认路径为:/data/db),为提高效率使用内存映射文件进行管理。

2012-05-09发布2.0.5正式版。上一个版本是2011-03-20的2.0.4.这个版本经过1个RC.包括如下改进

Bug

  • [SERVER-1163] - Writing 44K records a second and mongod.exe gives 'FlushViewOfFile failed 33' warning and then a client issue
  • [SERVER-2988] - mongos fails to start initially when any config server is unavailable
  • [SERVER-4385] - SyncClusterConnection should refresh sub-connections on recieving exceptions
  • [SERVER-4388] - newly sharded collection requires config info reload on the mongod
  • [SERVER-4619] - Relinquishing primary should be done in write lock
  • [SERVER-4680] - Inconsistent query results on large data and result sets
  • [SERVER-4777] - 'weird case' assertion when mods on two nested fields are applied to a document with a duplicated field name
  • [SERVER-4810] - If a replica set member with higher priority comes online, current primary relinquishes primary state
  • [SERVER-4812] - killcursor messages sent via piggyback data, which may be sent later or not at all
  • [SERVER-5093] - shard3.js memory corruption in Linux 64-bit build
  • [SERVER-5110] - ReplicaSetMonitor::check not thread safe wrt _master
  • [SERVER-5140] - SConstruct new smoke_python_name() hangs compilation
  • [SERVER-5187] - mongod --shutdown flag should ignore the fork option
  • [SERVER-5220] - Assertion error with data sets being in same order on master and slave during drop_dups.js test
  • [SERVER-5221] - Collections remaining on slave at end of small oplog tests
  • [SERVER-5348] - Redefinition of macros while using the C++ driver makes it unusable with larger application code
  • [SERVER-5357] - Map/Reduce operation writes output data in primary node of replica set but not in secondary nodes
  • [SERVER-5358] - After an upgrade, --shutdown fails to shutdown the old version of mongod
  • [SERVER-5384] - segfault attempting mapreduce with --noscripting
  • [SERVER-5404] - reconfig.js fails on mismatched error messages
  • [SERVER-5406] - mongos does not allow new connections for 30 seconds->a couple minutes when an rs member goes down
  • [SERVER-5449] - Assertion failure writing to journal file
  • [SERVER-5469] - can leak small extents after a drop()
  • [SERVER-5541] - crash in C++ client driver during shutdowing primary mongo server from repset
  • [SERVER-5542] - Race during static destruction of CommitJob object
  • [SERVER-5569] - objid6.js failing on dur_passthrough
  • [SERVER-5678] - assert in mongos_no_detect_sharding.js on 2.0 branch
  • [SERVER-5754] - Initial sync assertion error with 2.0.5-rc0

Improvement

  • [SERVER-5645] - When applying changes in MigrateStatus::apply(), acquire the lock for each change, not for all changes

下载:32位 http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.0.5.tgz

64位 http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.5.tgz

源码包 http://downloads.mongodb.org/src/mongodb-src-r2.0.5.tar.gz

linux
相关资讯       MongoDB 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

    ��  

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款