4
Changes in Version 2.4.2
5
------------------------
7
Version 2.4.2 is a minor release that fixes issues discovered after the
8
release of 2.4.1. Most importantly, PyMongo will no longer select a replica
9
set member for read operations that is not in primary or secondary state.
14
See the `PyMongo 2.4.2 release notes in JIRA`_ for the list of resolved issues
17
.. _PyMongo 2.4.2 release notes in JIRA: https://jira.mongodb.org/browse/PYTHON/fixforversion/12299
19
Changes in Version 2.4.1
20
------------------------
22
Version 2.4.1 is a minor release that fixes issues discovered after the
23
release of 2.4. Most importantly, this release fixes a regression using
24
:meth:`~pymongo.collection.Collection.aggregate`, and possibly other commands,
30
See the `PyMongo 2.4.1 release notes in JIRA`_ for the list of resolved issues
33
.. _PyMongo 2.4.1 release notes in JIRA: https://jira.mongodb.org/browse/PYTHON/fixforversion/12286
35
Changes in Version 2.4
36
----------------------
38
Version 2.4 includes a few important new features and a large number of bug
41
Important new features:
43
- New :class:`~pymongo.mongo_client.MongoClient` and
44
:class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient` classes -
45
these connection classes do acknowledged write operations (previously referred
46
to as 'safe' writes) by default. :class:`~pymongo.connection.Connection` and
47
:class:`~pymongo.replica_set_connection.ReplicaSetConnection` are deprecated
48
but still support the old default fire-and-forget behavior.
49
- A new write concern API implemented as a
50
:attr:`~pymongo.collection.Collection.write_concern` attribute on the connection,
51
:class:`~pymongo.database.Database`, or :class:`~pymongo.collection.Collection`
53
- :class:`~pymongo.mongo_client.MongoClient` (and :class:`~pymongo.connection.Connection`)
54
now support Unix Domain Sockets.
55
- :class:`~pymongo.cursor.Cursor` can be copied with functions from the :mod:`copy`
57
- The :meth:`~pymongo.database.Database.set_profiling_level` method now supports
59
- The replica set monitor task (used by
60
:class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient` and
61
:class:`~pymongo.replica_set_connection.ReplicaSetConnection`) is a daemon thread
62
once again, meaning you won't have to call
63
:meth:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient.close` before
64
exiting the python interactive shell.
68
The constructors for :class:`~pymongo.mongo_client.MongoClient`,
69
:class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`,
70
:class:`~pymongo.connection.Connection`, and
71
:class:`~pymongo.replica_set_connection.ReplicaSetConnection` now raise
72
:exc:`~pymongo.errors.ConnectionFailure` instead of its subclass
73
:exc:`~pymongo.errors.AutoReconnect` if the server is unavailable. Applications
74
that expect to catch :exc:`~pymongo.errors.AutoReconnect` should now catch
75
:exc:`~pymongo.errors.ConnectionFailure` while creating a new connection.
80
See the `PyMongo 2.4 release notes in JIRA`_ for the list of resolved issues
83
.. _PyMongo 2.4 release notes in JIRA: https://jira.mongodb.org/browse/PYTHON/fixforversion/11485
85
Changes in Version 2.3
86
----------------------
88
Version 2.3 adds support for new features and behavior changes in MongoDB
91
Important New Features:
93
- Support for expanded read preferences including directing reads to tagged
94
servers - See :ref:`secondary-reads` for more information.
95
- Support for mongos failover -
96
See :ref:`mongos-high-availability` for more information.
97
- A new :meth:`~pymongo.collection.Collection.aggregate` method to support
98
MongoDB's new `aggregation framework
99
<http://docs.mongodb.org/manual/applications/aggregation/>`_.
100
- Support for legacy Java and C# byte order when encoding and decoding UUIDs.
101
- Support for connecting directly to an arbiter.
105
Starting with MongoDB 2.2 the getLastError command requires authentication
106
when the server's `authentication features
107
<http://www.mongodb.org/display/DOCS/Security+and+Authentication>`_ are enabled.
108
Changes to PyMongo were required to support this behavior change. Users of
109
authentication must upgrade to PyMongo 2.3 (or newer) for "safe" write operations
110
to function correctly.
115
See the `PyMongo 2.3 release notes in JIRA`_ for the list of resolved issues
118
.. _PyMongo 2.3 release notes in JIRA: https://jira.mongodb.org/browse/PYTHON/fixforversion/11146
120
Changes in Version 2.2.1
121
------------------------
123
Version 2.2.1 is a minor release that fixes issues discovered after the
124
release of 2.2. Most importantly, this release fixes an incompatibility
125
with mod_wsgi 2.x that could cause connections to leak. Users of mod_wsgi
126
2.x are strongly encouraged to upgrade from PyMongo 2.2.
131
See the `PyMongo 2.2.1 release notes in JIRA`_ for the list of resolved issues
134
.. _PyMongo 2.2.1 release notes in JIRA: https://jira.mongodb.org/browse/PYTHON/fixforversion/11185
4
136
Changes in Version 2.2
5
137
-----------------------