NoSQL數據庫,MongoDB 2.0.3 發布
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-02-28發布2.0.3正式版。上一個版本是2011-12-14的2.0.2.這個版本經過兩個RC.包括如下改進
Bug
- [SERVER-3112] - mongo* tools logs should not log to stdout (broken w/--out -)
- [SERVER-3641] - support mongostat through mongos with authentication
- [SERVER-3672] - use min(majority, all "real" nodes) for majority
- [SERVER-3763] - when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.
- [SERVER-3817] - Increment opcounters for bulk insert
- [SERVER-3939] - Rollback is trying to log something in the oplog
- [SERVER-4115] - copyCollectionFromRemote needs to authenticate
- [SERVER-4238] - Make sure authentication always happens when a ScopedConn connects
- [SERVER-4387] - command should force reload of config data after multiple stale config exceptions
- [SERVER-4399] - mongos doesn't always update shards in response to replica set changes
- [SERVER-4400] - attempt to record query plan for a dropped cursor triggers bad file number assertion
- [SERVER-4401] - query optimizer cursor may return partial result set for a $or query if the last index match for a $or clause is deleted while it is "current"
- [SERVER-4474] - Initial sync should ignore capped collection dup key error, too
- [SERVER-4546] - Oplog replay can assert on initial sync if there's no _id index on a capped collection
- [SERVER-4547] - Disable full restore of sharded cluster
- [SERVER-4591] - MongoDB 2.0.2 fails to build: 'str' object has no attribute 'rpartition'
- [SERVER-4626] - If update does not contain an _id in criteria, sync apply can assert and get stuck
- [SERVER-4634] - --use-system-all (and --use-system-snappy?) don't actually use system snappy
- [SERVER-4643] - one of the shard is down
- [SERVER-4665] - Querying against sparse index creates bad state, affecting later queries
- [SERVER-4695] - getLog auth checks needs backport
- [SERVER-4699] - mongos can segfault after primary failover
- [SERVER-4712] - Shards crash fairly frequently when memory is low
- [SERVER-4714] - ScopedConn is segfaulting
- [SERVER-4745] - Figuring out which shard to send a query to takes a long time when doing large $in queries on the shard key
- [SERVER-4749] - fix concurrency api when using openssl
- [SERVER-4765] - sharded currentOp doesn't actually pass query
Improvement
- [SERVER-2612] - support logRotate under windows
- [SERVER-4673] - Don't lock authenticate command if we don't need to
- [SERVER-4780] - Improve Memory Leak Warning Message
下載:32位 http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.0.3.tgz
64位 http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.3.tgz
源碼包 http://downloads.mongodb.org/src/mongodb-src-r2.0.3.tar.gz