On this page本页内容
March 19, 2013
MongoDB 2.4 includes enhanced geospatial support, switch to V8 JavaScript engine, security enhancements, and text search (beta) and hashed index.
.ns
files on creation SERVER-15369._id
with a $prefix
field caused replication failure due to unvalidated insert SERVER-12209._id
could corrupt namespace SERVER-14833.mongos
incorrectly reports a successful write SERVER-12146.slaveOK
versioning logic SERVER-11971.dbHash
cache issue for config servers SERVER-11421.mongo
shell ignoring modified object's _id
field SERVER-9385.copydb
command with authorization in a sharded cluster SERVER-9093.The following changes in MongoDB affect both standard and Enterprise editions:
Add support for text search of content in MongoDB databases as a beta feature. See Text Indexes for more information.
Point
, LineString
, and Polygon
. See 2dsphere
Indexes and Geospatial Queries.$geometry
, $geoWithin
and $geoIntersects
to work with the GeoJSON data.Add new hashed index to index documents using hashes of field values. When used to index a shard key, the hashed index ensures an evenly distributed shard key. See also Hashed Sharding.
$geoWithin
operator and the $geoNear
pipeline stage.$sort
stage immediately precedes a $limit
in the pipeline.$millisecond
and $concat
and modify how $min
operator processes null
values.$where
OperationsThe mapReduce
command, group command, and the $where
operator expressions cannot access certain global functions or properties, such as db
, that are available in the mongo
shell. See the individual command or operator for details.
serverStatus
CommandProvide additional metrics and customization for the serverStatus
command. See db.serverStatus()
and serverStatus
for more information.
mongod
and mongos
for TLS/SSL.For more information on security and risk management strategies, see MongoDB Security Practices and Procedures.
Change default JavaScript engine from SpiderMonkey to V8. The change provides improved concurrency for JavaScript operations, modernized JavaScript implementation, and the removal of non-standard SpiderMonkey features, and affects all JavaScript behavior including the commands mapReduce
, group, and eval
and the query operator $where
.
See JavaScript Changes in MongoDB 2.4 for more information about all changes .
mongod
and mongorestore
Enable basic BSON object validation for mongod
and mongorestore
when writing to MongoDB data files. See wireObjectCheck
for details.
mongod
instance. See building indexes in the background for more information on background index builds.db.killOp()
method to terminate a foreground index build.Provide --setParameter
as a command line option for mongos
and mongod
. See mongod
and mongos
for list of available options for setParameter
.
By default, each document move during chunk migration in a sharded cluster propagates to at least one secondary before the balancer proceeds with its next operation. See Chunk Migration and Replication.
Increase performance for moving multiple chunks off an overloaded shard. The balancer no longer waits for the current migration's delete phase to complete before starting the next chunk migration. See Asynchronous Chunk Migration Cleanup for details.
The following changes are specific to MongoDB Enterprise Editions:
In 2.4.4, MongoDB Enterprise uses Cyrus SASL. Earlier 2.4 Enterprise versions use GNU SASL (libgsasl
). To upgrade to 2.4.4 MongoDB Enterprise or greater, you must install all package dependencies related to this change, including the appropriate Cyrus SASL GSSAPI
library. See Install MongoDB Enterprise for details of the dependencies.
In 2.4, the MongoDB Enterprise now supports authentication via a Kerberos mechanism. See Configure MongoDB with Kerberos Authentication on Linux for more information. For drivers that provide support for Kerberos authentication to MongoDB, refer to Driver Support.
For more information on security and risk management strategies, see MongoDB Security Practices and Procedures.
For macOS, MongoDB 2.4 only supports macOS versions 10.6 (Snow Leopard) and later. There are no other platform support changes in MongoDB 2.4. See the downloads page for more information on platform support.
See Upgrade MongoDB to 2.4 for full upgrade instructions.