@@ -1412,6 +1412,11 @@ def find(self, *args, **kwargs):
14121412 - `modifiers` (optional): **DEPRECATED** - A dict specifying
14131413 additional MongoDB query modifiers. Use the keyword arguments listed
14141414 above instead.
1415+ - `allow_disk_use` (optional): if True, MongoDB may use temporary
1416+ disk files to store data exceeding the system memory limit while
1417+ processing a blocking sort operation. The option has no effect if
1418+ MongoDB can satisfy the specified sort using an index, or if the
1419+ blocking sort requires less memory than the 100 MiB limit.
14151420
14161421 .. note:: There are a number of caveats to using
14171422 :attr:`~pymongo.cursor.CursorType.EXHAUST` as cursor_type:
@@ -1429,48 +1434,55 @@ def find(self, *args, **kwargs):
14291434 connection will be closed and discarded without being returned to
14301435 the connection pool.
14311436
1437+ .. versionchanged:: 3.11
1438+ Added the ``allow_disk_use`` option.
1439+
14321440 .. versionchanged:: 3.7
1433- Deprecated the `snapshot` option, which is deprecated in MongoDB
1441+ Deprecated the `` snapshot` ` option, which is deprecated in MongoDB
14341442 3.6 and removed in MongoDB 4.0.
1435- Deprecated the `max_scan` option. Support for this option is
1436- deprecated in MongoDB 4.0. Use `max_time_ms` instead to limit server
1437- side execution time.
1438-
1443+ Deprecated the ``max_scan`` option. Support for this option is
1444+ deprecated in MongoDB 4.0. Use ``max_time_ms`` instead to limit
1445+ server-side execution time.
14391446
14401447 .. versionchanged:: 3.6
14411448 Added ``session`` parameter.
14421449
14431450 .. versionchanged:: 3.5
1444- Added the options `return_key`, `show_record_id`, `snapshot`,
1445- `hint`, `max_time_ms`, `max_scan`, `min`, `max`, and `comment`.
1446- Deprecated the option `modifiers`.
1451+ Added the options ``return_key``, ``show_record_id``, ``snapshot``,
1452+ ``hint``, ``max_time_ms``, ``max_scan``, ``min``, ``max``, and
1453+ ``comment``.
1454+ Deprecated the ``modifiers`` option.
14471455
14481456 .. versionchanged:: 3.4
1449- Support the `collation` option.
1457+ Added support for the `` collation` ` option.
14501458
14511459 .. versionchanged:: 3.0
1452- Changed the parameter names `spec`, `fields`, `timeout`, and
1453- `partial` to `filter`, `projection`, `no_cursor_timeout`, and
1454- `allow_partial_results` respectively.
1455- Added the `cursor_type`, `oplog_replay`, and `modifiers` options.
1456- Removed the `network_timeout`, `read_preference`, `tag_sets`,
1457- `secondary_acceptable_latency_ms`, `max_scan`, `snapshot`,
1458- `tailable`, `await_data`, `exhaust`, `as_class`, and slave_okay
1459- parameters. Removed `compile_re` option: PyMongo now always
1460+ Changed the parameter names ``spec``, ``fields``, ``timeout``, and
1461+ ``partial`` to ``filter``, ``projection``, ``no_cursor_timeout``,
1462+ and ``allow_partial_results`` respectively.
1463+ Added the ``cursor_type``, ``oplog_replay``, and ``modifiers``
1464+ options.
1465+ Removed the ``network_timeout``, ``read_preference``, ``tag_sets``,
1466+ ``secondary_acceptable_latency_ms``, ``max_scan``, ``snapshot``,
1467+ ``tailable``, ``await_data``, ``exhaust``, ``as_class``, and
1468+ slave_okay parameters.
1469+ Removed ``compile_re`` option: PyMongo now always
14601470 represents BSON regular expressions as :class:`~bson.regex.Regex`
14611471 objects. Use :meth:`~bson.regex.Regex.try_compile` to attempt to
14621472 convert from a BSON regular expression to a Python regular
1463- expression object. Soft deprecated the `manipulate` option.
1473+ expression object.
1474+ Soft deprecated the ``manipulate`` option.
14641475
14651476 .. versionchanged:: 2.7
1466- Added `compile_re` option. If set to False, PyMongo represented BSON
1467- regular expressions as :class:`~bson.regex.Regex` objects instead of
1468- attempting to compile BSON regular expressions as Python native
1469- regular expressions, thus preventing errors for some incompatible
1470- patterns, see `PYTHON-500`_.
1471-
1472- .. versionadded:: 2.3
1473- The `tag_sets` and `secondary_acceptable_latency_ms` parameters.
1477+ Added ``compile_re`` option. If set to False, PyMongo represented
1478+ BSON regular expressions as :class:`~bson.regex.Regex` objects
1479+ instead of attempting to compile BSON regular expressions as Python
1480+ native regular expressions, thus preventing errors for some
1481+ incompatible patterns, see `PYTHON-500`_.
1482+
1483+ .. versionchanged:: 2.3
1484+ Added the ``tag_sets`` and ``secondary_acceptable_latency_ms``
1485+ parameters.
14741486
14751487 .. _PYTHON-500: https://jira.mongodb.org/browse/PYTHON-500
14761488
0 commit comments