1
1
Changelog
2
2
=========
3
3
4
- Changes in Version 2.5.2+
5
- -------------------------
4
+ Changes in Version 2.6
5
+ ----------------------
6
6
7
- Important new features:
7
+ Version 2.6 includes some frequently requested improvements and adds
8
+ support for some early MongoDB 2.6 features.
8
9
9
- - The `max_pool_size ` option for :class: `~pymongo.mongo_client.MongoClient ` and
10
- :class: `~pymongo.mongo_replica_set_client.MongoReplicaSetClient ` now actually
11
- caps the number of sockets the pool will open concurrently. Connection or
12
- query attempts when the pool has reached `max_pool_size ` block waiting for a
13
- socket to be returned to the pool. If ``waitQueueTimeoutMS `` is set, an
14
- operation that blocks waiting for a socket will raise
15
- :exc: `~pymongo.errors.ConnectionFailure ` after the timeout. By default
16
- ``waitQueueTimeoutMS `` is not set.
10
+ Special thanks go to Justin Patrin for his work on the connection pool
11
+ in this release.
17
12
18
- .. warning :: SIGNIFICANT BEHAVIOR CHANGE in 2.5.2+. Previously, `max_pool_size`
13
+ Important new features:
14
+
15
+ - The ``max_pool_size `` option for :class: `~pymongo.mongo_client.MongoClient `
16
+ and :class: `~pymongo.mongo_replica_set_client.MongoReplicaSetClient ` now
17
+ actually caps the number of sockets the pool will open concurrently.
18
+ Once the pool has reached :attr: `~pymongo.mongo_client.MongoClient.max_pool_size `
19
+ operations will block waiting for a socket to become available. If
20
+ ``waitQueueTimeoutMS `` is set, an operation that blocks waiting for a socket
21
+ will raise :exc: `~pymongo.errors.ConnectionFailure ` after the timeout. By
22
+ default ``waitQueueTimeoutMS `` is not set.
23
+ See :ref: `connection-pooling ` for more information.
24
+ - The :meth: `~pymongo.collection.Collection.insert ` method automatically splits
25
+ large batches of documents into multiple insert messages based on
26
+ :attr: `~pymongo.mongo_client.MongoClient.max_message_size `
27
+ - Support for the exhaust cursor flag.
28
+ See :meth: `~pymongo.collection.Collection.find ` for details and caveats.
29
+ - Support for the PLAIN and MONGODB-X509 authentication mechanisms.
30
+ See :doc: `the authentication docs </examples/authentication >` for more
31
+ information.
32
+ - Support aggregation output as a :class: `~pymongo.cursor.Cursor `. See
33
+ :meth: `~pymongo.collection.Collection.aggregate ` for details.
34
+
35
+ .. warning :: SIGNIFICANT BEHAVIOR CHANGE in 2.6. Previously, `max_pool_size`
19
36
would limit only the idle sockets the pool would hold onto, not the
20
37
number of open sockets. The default has also changed, from 10 to 100.
21
38
If you pass a value for ``max_pool_size `` make sure it is large enough for
@@ -25,6 +42,14 @@ Important new features:
25
42
26
43
See :ref: `connection-pooling ` for more information.
27
44
45
+ Issues Resolved
46
+ ...............
47
+
48
+ See the `PyMongo 2.6 release notes in JIRA `_ for the list of resolved issues
49
+ in this release.
50
+
51
+ .. _PyMongo 2.6 release notes in JIRA : https://jira.mongodb.org/browse/PYTHON/fixforversion/12380
52
+
28
53
Changes in Version 2.5.2
29
54
------------------------
30
55
0 commit comments