/
1.4.txt
97 lines (59 loc) · 2.71 KB
/
1.4.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
=============================
Release Notes for MongoDB 1.4
=============================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: twocols
Upgrading
---------
We're pleased to announce the 1.4 release of MongoDB. 1.4 is a drop-in
replacement for 1.2. To upgrade you just need to shutdown
:binary:`~bin.mongod`, then restart with the new binaries. (Users upgrading
from release 1.0 should review the :doc:`1.2 release notes </release-notes/1.2>`,
in particular the instructions for upgrading the DB format.)
Release 1.4 includes the following improvements over release 1.2:
Core Server Enhancements
------------------------
- :doc:`concurrency </faq/concurrency>` improvements
- indexing memory improvements
- :ref:`background index creation <index-creation-background>`
- better detection of regular expressions so the index can be used in
more cases
Replication and Sharding
------------------------
- better handling for restarting slaves offline for a while
- fast new slaves from snapshots (``--fastsync``)
- configurable slave delay (``--slavedelay``)
- replication handles clock skew on master
- :doc:`$inc </reference/operator/update/inc>` replication fixes
- sharding alpha 3 - notably 2-phase commit on config servers
Deployment and Production
-------------------------
- :ref:`configure "slow threshold" for profiling <database-profiling-levels>`
- ability to do :doc:`fsync + lock </reference/command/fsync>` for backing up raw files
- option for separate directory per db (``--directoryperdb``)
- ``http://localhost:28017/_status`` to get serverStatus via http
- REST interface is off by default for security (``--rest`` to enable)
- can rotate logs with a db command, :doc:`logRotate </reference/command/logRotate>`
- enhancements to :doc:`serverStatus </reference/server-status/>`
command (db.serverStatus()) - counters and :ref:`replication lag
<replica-set-replication-lag>` stats
- new :doc:`mongostat </reference/mongostat>` tool
Query Language Improvements
---------------------------
- :doc:`$all </reference/operator/query/all>` with regex
- :doc:`$not </reference/operator/query/not>`
- partial matching of array elements :doc:`$elemMatch </reference/operator/projection/elemMatch>`
- $ operator for updating arrays
- :doc:`$addToSet </reference/operator/update/addToSet>`
- :doc:`$unset </reference/operator/update/unset>`
- :doc:`$pull </reference/operator/update/pull>` supports object matching
- :doc:`$set </reference/operator/update/set>` with array indexes
Geo
---
- :doc:`2d geospatial search </core/geospatial-indexes>`
- geo :doc:`$center </reference/operator/query/center>` and :doc:`$box
</reference/operator/query/box>` searches